Skip to content

Commit

Permalink
net/mlx5: fix missing mutex_unlock in mlx5_fw_fatal_reporter_err_work()
Browse files Browse the repository at this point in the history
Add missing mutex_unlock() before returning from
mlx5_fw_fatal_reporter_err_work().

Fixes: 9078e84 ("net/mlx5: Avoid recovery in probe flows")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Signed-off-by: Shay Drory <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
  • Loading branch information
Yang Yingliang authored and Saeed Mahameed committed Jan 18, 2023
1 parent 010a74f commit 90e7cb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/mellanox/mlx5/core/health.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ static void mlx5_fw_fatal_reporter_err_work(struct work_struct *work)
mutex_lock(&dev->intf_state_mutex);
if (test_bit(MLX5_DROP_NEW_HEALTH_WORK, &health->flags)) {
mlx5_core_err(dev, "health works are not permitted at this stage\n");
mutex_unlock(&dev->intf_state_mutex);
return;
}
mutex_unlock(&dev->intf_state_mutex);
Expand Down

0 comments on commit 90e7cb7

Please sign in to comment.