ice: fix error return code in ice_get_recp_frm_fw()
authorWang Hai <wanghai38@huawei.com>
Tue, 26 Oct 2021 12:23:33 +0000 (20:23 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 28 Oct 2021 18:00:21 +0000 (11:00 -0700)
commitc8e51a012214a09017d4065c478f8a908f8f060b
tree43f873aefeea07dc1dee9990142b4800749a8c8f
parent370764e60b183eee671e90e62510c2684f4ea849
ice: fix error return code in ice_get_recp_frm_fw()

Return error code if devm_kmemdup() fails in ice_get_recp_frm_fw()

Fixes: fd2a6b71e300 ("ice: create advanced switch recipe")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c