aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/qp.c
diff options
context:
space:
mode:
authorMajd Dibbiny <majd@mellanox.com>2016-01-28 17:51:47 +0200
committerDoug Ledford <dledford@redhat.com>2016-02-02 16:42:22 -0500
commita168a41c8147fe644f1144031a6ec27a1a13fe37 (patch)
tree2042325862ce637003e7bce43ee6af201e5ad02e /drivers/infiniband/hw/mlx5/qp.c
parentIB/mlx5: Add CREATE_CQ and CREATE_QP to uverbs_ex_cmd_mask (diff)
downloadlinux-dev-a168a41c8147fe644f1144031a6ec27a1a13fe37.tar.xz
linux-dev-a168a41c8147fe644f1144031a6ec27a1a13fe37.zip
IB/mlx5: Fix reqlen validation in mlx5_ib_alloc_ucontext
Older libraries that don't have all the new req_v2 fields should be able to work as well. Today, if the library uses v2, it will fail to allocate context since the size of reqlen is smaller than the req_v2 size. Fix the validation to be with the original req_v2 size and not the current. Fixes: f72300c56c3b ('IB/mlx5: Expose CQE version to user-space') Signed-off-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/qp.c')
0 files changed, 0 insertions, 0 deletions