]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: CT: Fix memory leak in cleanup
authorEli Britstein <elibr@mellanox.com>
Sun, 28 Jun 2020 12:42:26 +0000 (15:42 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 10 Jul 2020 02:27:07 +0000 (19:27 -0700)
commit1de10d720280ff7d3a8a367907721f92cec660fc
tree025d2584ba8e59209988e297959b38d6fb8010b6
parenta75b0b1ec49d34b38bb356eca4ae5d14d84a5f85
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: d342728dba6a ("net/mlx5e: CT: Offload established flows")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c