]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix possible deadlock on rule deletion
authorMaor Gottlieb <maorg@nvidia.com>
Mon, 24 Jan 2022 19:25:04 +0000 (21:25 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Feb 2022 00:08:14 +0000 (16:08 -0800)
commitfd1bec7e4893e8cd288584ccdff621896edb9b1f
treed3a8887f8dc14d12515c0a813d0f1cdc788ea697
parent67a1328965704331b4dff48bb9b8a182ea89eaca
net/mlx5: Fix possible deadlock on rule deletion

Add missing call to up_write_ref_node() which releases the semaphore
in case the FTE doesn't have destinations, such in drop rule case.

Fixes: 4cefb938e29f ("net/mlx5: Fix deletion of duplicate rules")
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c