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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Sep 2020 16:05:27 +0000 (18:05 +0200)
commit3a3aab5bd46f077e1456de9eb3aceb22c47b9d0c
treec97242c6abbe4bca106b8c79159e1af509cc7b7c
parente77ae86a283091f080b60a362c05afc8743e0e97
net/mlx5e: Fix memory leak of tunnel info when rule under multipath not ready

[ Upstream commit 12a240a41427d37b5e70570700704e84c827452f ]

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

Fixes: ef06c9ee8933 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c