OSDN Git Service

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)
commit12a240a41427d37b5e70570700704e84c827452f
tree3a563368afccb934f4ab6249e30ced607a5848ff
parent9c25a22dfb00270372224721fed646965420323a
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: 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>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c