Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mlx5: Fix check for SQ overflow in bind_mw
[ Upstream commit efad770 ] The `seg` parameter is a pointer to pointer, we need to derefernce it to check if we reached the end of SQ. Otherwise WQE data segment can be written past SQ. Fixes: f14d598 ("Implement memory window bind verb for type 1") Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com> Reviewed-by: Sergey Gorenko <sergeygo@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
- Loading branch information