mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
qed: Handle management FW error
commit20e100f527upstream. Handle MFW (management FW) error response in order to avoid a crash during recovery flows. Changes from v1: - Add "Fixes tag". Fixes: tag5e7ba042fd("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>
This commit is contained in:
parent
e00eae1d6b
commit
5221e66329
|
|
@ -3376,6 +3376,7 @@ qed_mcp_get_nvm_image_att(struct qed_hwfn *p_hwfn,
|
||||||
struct qed_nvm_image_att *p_image_att)
|
struct qed_nvm_image_att *p_image_att)
|
||||||
{
|
{
|
||||||
enum nvm_image_type type;
|
enum nvm_image_type type;
|
||||||
|
int rc;
|
||||||
u32 i;
|
u32 i;
|
||||||
|
|
||||||
/* Translate image_id into MFW definitions */
|
/* Translate image_id into MFW definitions */
|
||||||
|
|
@ -3404,7 +3405,10 @@ qed_mcp_get_nvm_image_att(struct qed_hwfn *p_hwfn,
|
||||||
return -EINVAL;
|
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++)
|
for (i = 0; i < p_hwfn->nvm_info.num_images; i++)
|
||||||
if (type == p_hwfn->nvm_info.image_att[i].image_type)
|
if (type == p_hwfn->nvm_info.image_att[i].image_type)
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user