OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 May 2017 15:36:36 +0000 (08:36 -0700)
commit03641c4ded853647933e13a7105edf071be95404
treefa3f96cd616444e0962251faa5c52c64a817be03
parentb2440a5d3e259958a7775dba5d66eba4423fe6ce
net/mlx5: Fix driver load bad flow when having fw initializing timeout

[ Upstream commit 55378a238e04b39cc82957d91d16499704ea719b ]

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: e3297246c2c8 ('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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c