diff options
author | Daniel Jurgens <[email protected]> | 2019-02-02 11:09:43 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-02-08 16:24:44 -0700 |
commit | 6e88e672b69f0e627acdae74a527b730ea224b6b (patch) | |
tree | 54c540624cbe3e492b00cc414c4af1c90db3b86b /lib/mpi/mpi-cmp.c | |
parent | d60667fc398ed34b3c7456b020481c55c760e503 (diff) |
IB/core: Fix potential memory leak while creating MAD agents
If the MAD agents isn't allowed to manage the subnet, or fails to register
for the LSM notifier, the security context is leaked. Free the context in
these cases.
Fixes: 47a2b338fe63 ("IB/core: Enforce security on management datagrams")
Signed-off-by: Daniel Jurgens <[email protected]>
Reviewed-by: Parav Pandit <[email protected]>
Reported-by: Parav Pandit <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions