Parav Pandit 73827a605b 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>
2017-09-25 11:47:23 -04:00
..
2017-08-22 17:04:22 -04:00
2016-05-13 13:37:18 -04:00
2017-08-22 17:04:22 -04:00
2016-03-03 10:20:25 -05:00
2017-08-31 08:35:09 -04:00
2017-09-05 15:15:30 -04:00
2017-08-10 13:28:10 +03:00
2016-03-03 10:20:25 -05:00
2017-08-18 14:47:37 -04:00
2017-09-22 11:52:09 -04:00