Skip to content

Commit 8ce59b1

Browse files
Gal PressmanSaeed Mahameed
authored andcommitted
net/mlx5: Fix driver load error flow when firmware is stuck
When wait for firmware init fails, previous code would mistakenly return success and cause inconsistency in the driver state. Fixes: 6c780a0 ("net/mlx5: Wait for FW readiness before initializing command interface") Signed-off-by: Gal Pressman <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent d747a7a commit 8ce59b1

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ static int mlx5_load_one(struct mlx5_core_dev *dev, struct mlx5_priv *priv,
10201020
if (err) {
10211021
dev_err(&dev->pdev->dev, "Firmware over %d MS in pre-initializing state, aborting\n",
10221022
FW_PRE_INIT_TIMEOUT_MILI);
1023-
goto out;
1023+
goto out_err;
10241024
}
10251025

10261026
err = mlx5_cmd_init(dev);

0 commit comments

Comments
 (0)