]> 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)
commitf3e552498e2a311c79505ddf8fb648a80f87f470
tree170237269fb3e8f2fdf01f8db7305d9851ce86ae
parent838c405aca825e70b0537d817242a5b416118125
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: d1adfcf4ff7a ("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