diff options
author | 2022-10-30 17:16:58 +0200 | |
---|---|---|
committer | 2022-11-24 00:03:22 -0800 | |
commit | 9b9e23c4dc2b632ece44c68ce6aebc0bf841d6a2 (patch) | |
tree | 5e16156676229d90099228aa4931534a1d9437c3 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | net/mlx5e: MACsec, fix RX data path 16 RX security channel limit (diff) | |
download | wireguard-linux-9b9e23c4dc2b632ece44c68ce6aebc0bf841d6a2.tar.xz wireguard-linux-9b9e23c4dc2b632ece44c68ce6aebc0bf841d6a2.zip |
net/mlx5e: MACsec, fix memory leak when MACsec device is deleted
When the MACsec netdevice is deleted, all related Rx/Tx HW/SW
states should be released/deallocated, however currently part
of the Rx security channel association data is not cleaned
properly, hence the memory leaks.
Fix by make sure all related Rx Sc resources are cleaned/freed,
while at it improve code by grouping release SC context in a
function so it can be used in both delete MACsec device and
delete Rx SC operations.
Fixes: 5a39816a75e5 ("net/mlx5e: Add MACsec offload SecY support")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Emeel Hakim <ehakim@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions