qed: Fix a error code in qed_hw_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 31 Jan 2020 05:03:26 +0000 (08:03 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Feb 2020 19:35:17 +0000 (11:35 -0800)
commitd32a06f5434f5e0cdef8e88dc62d079d980088e1
tree4dcb43f8dc58ab94af3bb06c8ef54d99c7535c2f
parent08ff78182fa170dbbe1ebf31e798e9340d6802a5
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: 30d5f85895fa ("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>
drivers/net/ethernet/qlogic/qed/qed_dev.c