]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix error return code in ice_init_hw()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 28 Mar 2018 12:50:45 +0000 (12:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 6 Apr 2018 14:00:09 +0000 (07:00 -0700)
commitf1a41e45f04d406fc0619eb9b6506ff1e8f2a958
tree815af849a7eb9dc97c987c75bafe39b4c653bcec
parent467264a7945dee121807a8fd0b35ba83822203b1
ice: Fix error return code in ice_init_hw()

Fix to return error code ICE_ERR_NO_MEMORY from the alloc error
handling case instead of 0, as done elsewhere in this function.

Fixes: 7823dcda65c7 ("ice: Get MAC/PHY/link info and scheduler topology")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c