linux/drivers/infiniband/ulp
Bart Van Assche 9d8e7d0dac IB/srp: Fix a memory descriptor leak in an error path
If an error occurs after srp_fr_pool_get() succeeded and before the
descriptor is stored in srp_map_state (*state->fr.next++ = desc)
then srp_unmap_data() won't free the newly allocated memory
descriptor. Hence free the descriptor explicitly.

Fixes: f7f7aab1a5 ("IB/srp: Convert to new registration API")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Cc: Sagi Grimberg <sai@grimberg.me>
Cc: Christoph Hellwig <hch@lst.de>
Cc: <stable@vger.kernel.org> # v4.4+
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-05-13 13:37:21 -04:00
..
ipoib IB/ipoib: Allow mcast packets from other VFs 2016-03-21 17:13:14 -04:00
iser IB/core: Add passing an offset into the SG to ib_map_mr_sg 2016-05-13 13:37:11 -04:00
isert IB/isert: convert to the generic RDMA READ/WRITE API 2016-05-13 13:37:20 -04:00
srp IB/srp: Fix a memory descriptor leak in an error path 2016-05-13 13:37:21 -04:00
srpt IB/srpt: convert to the generic RDMA READ/WRITE API 2016-05-13 13:37:20 -04:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00