Skip to content

Commit eb32b3f

Browse files
Eli BritsteinSaeed Mahameed
authored andcommitted
net/mlx5e: CT: Fix memory leak in cleanup
CT entries are deleted via a workqueue from netfilter. If removing the module before that, the rules are cleaned by the driver itself, but the memory entries for them are not freed. Fix that. Fixes: ac991b4 ("net/mlx5e: CT: Offload established flows") Signed-off-by: Eli Britstein <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 88b3d5c commit eb32b3f

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,7 @@ mlx5_tc_ct_flush_ft_entry(void *ptr, void *arg)
10971097
struct mlx5_ct_entry *entry = ptr;
10981098

10991099
mlx5_tc_ct_entry_del_rules(ct_priv, entry);
1100+
kfree(entry);
11001101
}
11011102

11021103
static void

0 commit comments

Comments
 (0)