qed: Fix a error code in qed_hw_init()
If the qed_fw_overlay_mem_alloc() then we should return -ENOMEM instead
of success.
Fixes: 30d5f85895
("qed: FW 8.42.2.0 Add fw overlay feature")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
08ff78182f
commit
d32a06f543
@ -3114,6 +3114,7 @@ int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params)
|
||||
if (!p_hwfn->fw_overlay_mem) {
|
||||
DP_NOTICE(p_hwfn,
|
||||
"Failed to allocate fw overlay memory\n");
|
||||
rc = -ENOMEM;
|
||||
goto load_err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user