diff options
author | Bart Van Assche <[email protected]> | 2016-09-26 12:58:49 -0700 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2016-10-07 16:54:39 -0400 |
commit | 681cc3608355737c1effebc8145f95c8c3344bc3 (patch) | |
tree | 440c6dc95990989c80eaeac571a01c88efce3d7a /lib/mpi/mpi-internal.h | |
parent | 52bb8c626e0e5526c72b6ad17f1381f0bad283cc (diff) |
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 8c4037b501ac ("IB/srp: always avoid non-zero offsets
into an FMR").
Reported-by: Alex Estrin <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Cc: <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions