]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: CT: Fix missing cleanup of ct nat table on init failure
authorPaul Blakey <paulb@nvidia.com>
Thu, 30 Sep 2021 11:23:32 +0000 (14:23 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 16 Oct 2021 00:37:45 +0000 (17:37 -0700)
commitfca2d8f4c4179132c85836106e58b4d3683585ef
treef29fa1eca4ad2317d6f4d49242a5410e939052d0
parent74149ed75162f3157de46825b0490a91eda71770
net/mlx5: CT: Fix missing cleanup of ct nat table on init failure

If CT fails to initialize it's rhashtables, it doesn't destroy
the ct nat global table.

Destroy the ct nat global table on ct init failure.

Fixes: a2216f0f84bb ("net/mlx5e: check return value of rhashtable_init")
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c