]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Fix error flow cleanup in mlx5e_tc_tun_create_header_ipv4/6
authorEli Cohen <eli@mellanox.com>
Thu, 31 Oct 2019 07:00:43 +0000 (09:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2019 09:07:39 +0000 (10:07 +0100)
commitf07b4f021e9562967b4673f078d15f871d6c1e91
tree0cc7ff30c4b1374b584d1532c200d417c8893e3b
parenta5253939eecf88633fb92fac90466ce69838f7de
net/mlx5e: Fix error flow cleanup in mlx5e_tc_tun_create_header_ipv4/6

[ Upstream commit a86db2269fca8019074b720baf2e0a35cddac4e9 ]

Be sure to release the neighbour in case of failures after successful
route lookup.

Fixes: 101f4de9dd52 ("net/mlx5e: Move TC tunnel offloading code to separate source file")
Signed-off-by: Eli Cohen <eli@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_tun.c