summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-04-22 14:13:35 -0700
committerDoug Ledford <dledford@redhat.com>2016-05-12 14:18:55 -0400
commite012f3639c95498d4e8d7a9f44e33f1cd2f241b0 (patch)
tree5fadfe86d8167acee6b01e13758034f865b84d64 /kernel
parent77269cdfcab5f01ebd2095273f4060fbe1001e68 (diff)
IB/srp: Fix srp_map_data() error paths
Ensure that req->nmdesc is set correctly in srp_map_sg() if mapping fails. Avoid that mapping failure causes a memory descriptor leak. Report srp_map_sg() failure to the caller. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Sagi Grimberg <sagi@grimberg.me> Cc: Laurence Oberman <loberman@redhat.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions