aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2017-09-24 21:46:30 +0300
committerDoug Ledford <dledford@redhat.com>2017-09-25 11:47:23 -0400
commit73827a605bbd7cebef4cfd1261e497246a82a0e7 (patch)
treed47f424393f797a944696af1cd06108a319ba46f /drivers/infiniband/hw
parentIB/core: Fix typo in the name of the tag-matching cap struct (diff)
downloadlinux-dev-73827a605bbd7cebef4cfd1261e497246a82a0e7.tar.xz
linux-dev-73827a605bbd7cebef4cfd1261e497246a82a0e7.zip
IB/core: Fix qp_sec use after free access
When security_ib_alloc_security fails, qp->qp_sec memory is freed. However ib_destroy_qp still tries to access this memory which result in kernel crash. So its initialized to NULL to avoid such access. Fixes: d291f1a65232 ("IB/core: Enforce PKey security on QPs") Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Daniel Jurgens <danielj@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
0 files changed, 0 insertions, 0 deletions