]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix driver load bad flow when having fw initializing timeout
authorMohamad Haj Yahia <mohamad@mellanox.com>
Thu, 30 Mar 2017 14:00:25 +0000 (17:00 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 22 Apr 2017 18:52:37 +0000 (21:52 +0300)
commitb6558b6f963a331d21140051efd0922c72b7af91
tree49c59c2aa32a2db7566c30da79999e0ff407e88a
parentfc708fe2754f775a8f64e0c3ad33ad0c8035145e
net/mlx5: Fix driver load bad flow when having fw initializing timeout

If FW is stuck in initializing state we will skip the driver load, but
current error handling flow doesn't clean previously allocated command
interface resources.

Fixes: ae19e411daf4 ('net/mlx5_core: Wait for FW readiness on startup')
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c