Skip to content

Commit 2fad8f0

Browse files
hamdanigbariarleon
authored andcommitted
RDMA/mlx5: Fix mutex unlocking on error flow for steering anchor creation
The mutex was not unlocked on some of the error flows. Moved the unlock location to include all the error flow scenarios. Fixes: e1f4a52 ("RDMA/mlx5: Create an indirect flow table for steering anchor") Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Hamdan Igbaria <[email protected]> Link: https://lore.kernel.org/r/1244a69d783da997c0af0b827c622eb00495492e.1695203958.git.leonro@nvidia.com Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 4f14c6c commit 2fad8f0

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/mlx5/fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,8 +2470,8 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_STEERING_ANCHOR_CREATE)(
24702470
mlx5_steering_anchor_destroy_res(ft_prio);
24712471
put_flow_table:
24722472
put_flow_table(dev, ft_prio, true);
2473-
mutex_unlock(&dev->flow_db->lock);
24742473
free_obj:
2474+
mutex_unlock(&dev->flow_db->lock);
24752475
kfree(obj);
24762476

24772477
return err;

0 commit comments

Comments
 (0)