diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2017-04-23 11:31:42 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 13:44:32 (GMT) |
commit | cb5cf8aaba2ede15fd13b52029bf4e5915e6096f (patch) | |
tree | 8d8a2d35721e19eba47f4dff4e1bcd971e5b5e60 /include | |
parent | ece453e8b0ca45e1b36317042c8aa7f3ef59e440 (diff) | |
download | linux-cb5cf8aaba2ede15fd13b52029bf4e5915e6096f.tar.xz |
mlx5: Fix mlx5_ib_map_mr_sg mr length
commit 0a49f2c31c3efbeb0de3e4b5598764887f629be2 upstream.
In case we got an initial sg_offset, we need to
account for it in the mr length.
Fixes: ff2ba9936591 ("IB/core: Add passing an offset into the SG to ib_map_mr_sg")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Israel Rukshin <israelr@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions