summaryrefslogtreecommitdiff
path: root/include/linux/mod_devicetable.h
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-09-26 12:58:49 -0700
committerBen Hutchings <ben@decadent.org.uk>2017-02-23 03:54:10 +0000
commit00a05de9ae402f3408fe7fb43fb5654c435831ed (patch)
tree0de30e2a48c215d17cf3efac8f60f664e707b9e7 /include/linux/mod_devicetable.h
parent3c54629c642f3b11dd33e412b9519091b5bb3ede (diff)
IB/srp: Fix infinite loop when FMR sg[0].offset != 0
commit 681cc3608355737c1effebc8145f95c8c3344bc3 upstream. Avoid that mapping an sg-list in which the first element has a non-zero offset triggers an infinite loop when using FMR. This patch makes the FMR mapping code similar to that of ib_sg_to_pages(). Note: older Mellanox HCAs do not support non-zero offsets for FMR. See also commit 8c4037b501ac ("IB/srp: always avoid non-zero offsets into an FMR"). Reported-by: Alex Estrin <alex.estrin@intel.com> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Doug Ledford <dledford@redhat.com> [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/mod_devicetable.h')
0 files changed, 0 insertions, 0 deletions