]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
igc: check return value of ret_val in igc_config_fc_after_link_up
authorKevin Lo <kevlo@kevlo.org>
Thu, 7 Jan 2021 06:10:38 +0000 (14:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:29:13 +0000 (09:29 +0100)
commit1ac8bec2205efbcef59ec989e9a9a4e57428a64e
tree1af6649a077a20f8fa3eb763a86d3834c122eb74
parent0cda160418583c066a17a2881babd3522c08e859
igc: check return value of ret_val in igc_config_fc_after_link_up

[ Upstream commit b881145642ce0bbe2be521e0882e72a5cebe93b8 ]

Check return value from ret_val to make error check actually work.

Fixes: 4eb8080143a9 ("igc: Add setup link functionality")
Signed-off-by: Kevin Lo <kevlo@kevlo.org>
Acked-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/igc/igc_mac.c