linux/drivers/infiniband/ulp
Bart Van Assche 00a05de9ae IB/srp: Fix infinite loop when FMR sg[0].offset != 0
commit 681cc36083 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 8c4037b501 ("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>
History 2017-02-23 03:54:10 +00:00
..
ipoib IB/ipoib: Don't allow MC joins during light MC flush 2016-11-20 01:17:31 +00:00
iser IB/iser: Fix wrong calculation of protection buffer length 2015-05-06 11:33:08 +01:00
isert iser-target: remove command with state ISTATE_REMOVE 2015-10-09 14:41:06 +01:00
srp IB/srp: Fix infinite loop when FMR sg[0].offset != 0 2017-02-23 03:54:10 +00:00
srpt IB/srpt: Simplify srpt_handle_tsk_mgmt() 2016-05-01 00:05:52 +02:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00