summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core/main.c
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@nvidia.com>2023-05-27 23:07:08 -0700
committerSaeed Mahameed <saeedm@nvidia.com>2023-05-31 20:08:37 -0700
commitb6193d7030e3c59f1d4c75648c9c8fa40cad2bcd (patch)
tree01c16a41fcbbf001efe6fbd037085eeef7656065 /drivers/net/ethernet/mellanox/mlx5/core/main.c
parent368591995d010e639ad8f28b27f1b721f0872342 (diff)
net/mlx5e: Fix error handling in mlx5e_refresh_tirs
Allocation failure is outside the critical lock section and should return immediately rather than jumping to the unlock section. Also unlock as soon as required and remove the now redundant jump label. Fixes: 80a2a9026b24 ("net/mlx5e: Add a lock on tir list") Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/main.c')
0 files changed, 0 insertions, 0 deletions