]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix memory leak of tunnel info when rule under multipath not ready
authorJianbo Liu <jianbol@mellanox.com>
Tue, 7 Jul 2020 06:16:24 +0000 (06:16 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 00:22:22 +0000 (17:22 -0700)
commit4da6565e6a75fb20ea5444a481cd40aa9e7b3eca
tree3a563368afccb934f4ab6249e30ced607a5848ff
parent03affaca42d670bb8e090ae03e8e85ed0951a5c4
net/mlx5e: Fix memory leak of tunnel info when rule under multipath not ready

When deleting vxlan flow rule under multipath, tun_info in parse_attr is
not freed when the rule is not ready.

Fixes: 5a46cf3c2519 ("net/mlx5e: Allow one failure when offloading tc encap rules under multipath")
Signed-off-by: Jianbo Liu <jianbol@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.c