Commit f6553813 authored by Jia-Ju Bai's avatar Jia-Ju Bai Committed by Zheng Zengkai
Browse files

net: intel: iavf: fix error return code of iavf_init_get_resources()



stable inclusion
from stable-5.10.27
commit 81b1a8f14436b48068964cc6fab3e8224bb60b02
bugzilla: 51493

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

[ Upstream commit 6650d31f ]

When iavf_process_config() fails, no error return code of
iavf_init_get_resources() is assigned.
To fix this bug, err is assigned with the return value of
iavf_process_config(), and then err is checked.

Reported-by: default avatarTOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: default avatarJia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 53bf47a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment