OSDN Git Service

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)
commit6fa37d66ef2dc850ff18b2a057a84cd7ca8499bb
tree170237269fb3e8f2fdf01f8db7305d9851ce86ae
parent6a3717544ce9ee8a2058fbc75c67060515435937
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: f3196bb0f14c ("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