diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-12-01 18:19:38 (GMT) |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-12-07 22:20:11 (GMT) |
commit | 57b0be9c0fb0ba3a35683c6ce21db7162d6758c5 (patch) | |
tree | d0caf2ef59d4965133b244945afb1c81d135b1dc /firmware/adaptec | |
parent | a745f4f410082fedc17be75e10e4098f300943db (diff) | |
download | linux-57b0be9c0fb0ba3a35683c6ce21db7162d6758c5.tar.xz |
IB/srp: Fix srp_map_sg_fr()
After dma_map_sg() has been called the return value of that function
must be used as the number of elements in the scatterlist instead of
scsi_sg_count().
Fixes: commit f7f7aab1a5c0 ("IB/srp: Convert to new registration API")
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: stable <stable@vger.kernel.org> # v4.4+
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'firmware/adaptec')
0 files changed, 0 insertions, 0 deletions