qed: Handle management FW error
Subsystems (3)
PATCH v2 1/1 qed: Handle management FW error
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 <[email protected]>
Signed-off-by Shai Malin <[email protected]>
--- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/net/ethernet/qlogic/qed/qed_mcp.c +5 -1
@@ -3367,6 +3367,7 @@ qed_mcp_get_nvm_image_att(struct qed_hwfn *p_hwfn, struct qed_nvm_image_att *p_image_att) {enum nvm_image_type type; +int rc;u32 i;/* Translate image_id into MFW definitions */
@@ -3395,7 +3396,10 @@ qed_mcp_get_nvm_image_att(struct qed_hwfn *p_hwfn,return -EINVAL ; } -qed_mcp_nvm_info_populate (p_hwfn); + rc =qed_mcp_nvm_info_populate (p_hwfn); +if (rc) +return rc; +for (i =0 ; i < p_hwfn->nvm_info.num_images; i++)if (type == p_hwfn->nvm_info.image_att[i].image_type)break ;
Signature · 1 line
2.22.0
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 11 lines · On Fri, 10 Sep 2021 11:33:56 +0300 you wrote:
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 <[email protected]>Signed-off-by Shai Malin <[email protected]>[...]
Here is the summary with links:
- [net,v2] qed: Handle management FW error
https://git.kernel.org/netdev/net/c/20e100f52730
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html