linux/drivers/infiniband
Bart Van Assche 681cc36083 IB/srp: Fix infinite loop when FMR sg[0].offset != 0
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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-10-07 16:54:39 -04:00
..
core IB/core: Improve ib_map_mr_sg() documentation 2016-10-07 16:54:38 -04:00
hw IB/mlx4: Fix possible vl/sl field mismatch in LRH header in QP1 packets 2016-10-07 16:54:38 -04:00
sw Second round of merge items for 4.8 2016-08-04 20:26:31 -04:00
ulp IB/srp: Fix infinite loop when FMR sg[0].offset != 0 2016-10-07 16:54:39 -04:00
Kconfig IB/hns: Kconfig and Makefile for RoCE module 2016-08-22 14:02:33 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00