qed: Handle management FW error
authorShai Malin <smalin@marvell.com>
Fri, 10 Sep 2021 08:33:56 +0000 (11:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:27:58 +0000 (12:27 +0200)
commit5221e66329910239df788f2cf49f4acc072f86d0
tree18664cf35fc1dddb446122665aae4493b9ffe0c4
parente00eae1d6b1fb8eecb1250fdcadcc97ea391cbe5
qed: Handle management FW error

commit 20e100f52730cd0db609e559799c1712b5f27582 upstream.

Handle MFW (management FW) error response in order to avoid a crash
during recovery flows.

Changes from v1:
- Add "Fixes tag".

Fixes: tag 5e7ba042fd05 ("qed: Fix reading stale configuration information")
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/qed/qed_mcp.c