提交 1f629660 编写于 作者: K Kevin Lo 提交者: Zheng Zengkai

igc: check return value of ret_val in igc_config_fc_after_link_up

stable inclusion
from stable-5.10.15
commit 1ac8bec2205efbcef59ec989e9a9a4e57428a64e
bugzilla: 48167

--------------------------------

[ Upstream commit b8811456 ]

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

Fixes: 4eb80801 ("igc: Add setup link functionality")
Signed-off-by: NKevin Lo <kevlo@kevlo.org>
Acked-by: NSasha Neftin <sasha.neftin@intel.com>
Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 1a50bf75
...@@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw) ...@@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw)
} }
out: out:
return 0; return ret_val;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册