net/mlx5e: Fix error code in mlx5e_tc_action_miss_mapping_get()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 13 Dec 2023 14:08:17 +0000 (17:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:42:29 +0000 (12:42 +0000)
commit186854bdbac653d656645d5566cc35bb977aea7f
tree750df128e4fcc01768d35d38913f40f9668ab115
parent96c8c465f77ff5fae23a0e6d839ffb1737941cc6
net/mlx5e: Fix error code in mlx5e_tc_action_miss_mapping_get()

[ Upstream commit 86d5922679f3b6d02a64df66cdd777fdd4ea5c0d ]

Preserve the error code if esw_add_restore_rule() fails.  Don't return
success.

Fixes: 6702782845a5 ("net/mlx5e: TC, Set CT miss to the specific ct action instance")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c