aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/mr.c
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2017-12-24 13:54:58 +0200
committerJason Gunthorpe <jgg@mellanox.com>2017-12-27 15:24:41 -0700
commit4a50881bbac309e6f0684816a180bc3c14e1485d (patch)
treeeb5e418661ec128520876d450984f164ede32706 /drivers/infiniband/hw/mlx5/mr.c
parentIB/uverbs: Fix command checking as part of ib_uverbs_ex_modify_qp() (diff)
downloadlinux-dev-4a50881bbac309e6f0684816a180bc3c14e1485d.tar.xz
linux-dev-4a50881bbac309e6f0684816a180bc3c14e1485d.zip
IB/core: Verify that QP is security enabled in create and destroy
The XRC target QP create flow sets up qp_sec only if there is an IB link with LSM security enabled. However, several other related uAPI entry points blindly follow the qp_sec NULL pointer, resulting in a possible oops. Check for NULL before using qp_sec. Cc: <stable@vger.kernel.org> # v4.12 Fixes: d291f1a65232 ("IB/core: Enforce PKey security on QPs") Reviewed-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mr.c')
0 files changed, 0 insertions, 0 deletions