Patch "net/mlx5: Fix driver load error flow when firmware is stuck" has been added to the 4.12-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
net/mlx5: Fix driver load error flow when firmware is stuck
to the 4.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-mlx5-fix-driver-load-error-flow-when-firmware-is-stuck.patch
and it can be found in the queue-4.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Jul 17 18:46:41 CEST 2017
From: Gal Pressman <[email protected]>
Date: Mon, 19 Jun 2017 18:25:59 +0300
Subject: net/mlx5: Fix driver load error flow when firmware is stuck
From: Gal Pressman <[email protected]>
[ Upstream commit 8ce59b16b4b6eacedaec1f7b652b4781cdbfe15f ]
When wait for firmware init fails, previous code would mistakenly return success and cause inconsistency in the driver state.
--- drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/main.c +1 -1
@@ -1020,7 +1020,7 @@ static int mlx5_load_one(struct mlx5_corif (err) {dev_err (&dev->pdev->dev,"Firmware over %d MS in pre-initializing state, aborting\n" ,FW_PRE_INIT_TIMEOUT_MILI ); - goto out; + goto out_err; } err =mlx5_cmd_init (dev);
Patches currently in stable-queue which might be from [email protected] are
queue-4.12/net-mlx5e-fix-tx-carrier-errors-report-in-get-stats-ndo.patch queue-4.12/net-mlx5-fix-driver-load-error-flow-when-firmware-is-stuck.patch