Skip to content

Commit d32a06f

Browse files
Dan Carpenterkuba-moo
authored andcommitted
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: 30d5f85 ("qed: FW 8.42.2.0 Add fw overlay feature") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 08ff781 commit d32a06f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/qlogic/qed/qed_dev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3114,6 +3114,7 @@ int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params)
31143114
if (!p_hwfn->fw_overlay_mem) {
31153115
DP_NOTICE(p_hwfn,
31163116
"Failed to allocate fw overlay memory\n");
3117+
rc = -ENOMEM;
31173118
goto load_err;
31183119
}
31193120

0 commit comments

Comments
 (0)