]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix rtable reference leak
authorParav Pandit <parav@mellanox.com>
Thu, 19 Sep 2019 20:58:14 +0000 (15:58 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 29 Oct 2019 23:27:19 +0000 (16:27 -0700)
commitc61061e076ae601cdaaab2666027ac9a0722750b
tree902c00e849e795e649a7be4b950cfd8f4a799a50
parent6561ab8fcbe24b1abe6fd2bb0e470730a55e8f27
net/mlx5: Fix rtable reference leak

If the rt entry gateway family is not AF_INET for multipath device,
rtable reference is leaked.
Hence, fix it by releasing the reference.

Fixes: e253671c3113 ("net/mlx5e: Use hint to resolve route when in HW multipath mode")
Fixes: c4ba17af1913 ("net/mlx5e: Support tunnel encap over tagged Ethernet")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c