]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: SF: Fix memory leak of work item
authorShay Drory <shayd@nvidia.com>
Tue, 2 Feb 2021 10:21:04 +0000 (12:21 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 10 Mar 2021 19:01:58 +0000 (11:01 -0800)
commit7adfe139d86447142ce4caa1f4a2bffd86e36a7b
tree170237269fb3e8f2fdf01f8db7305d9851ce86ae
parent88a4051d22998d77177f209af3c6d310d656c4c3
net/mlx5: SF: Fix memory leak of work item

Cited patch in the fixes tag missed to free the allocated work.
Fix it by freeing the work after work execution.

Fixes: 80afe3f75e35 ("net/mlx5: Introduce vhca state event notifier")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/vhca_event.c