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

net: tehuti: fix error return code in bdx_probe()



stable inclusion
from stable-5.10.27
commit 5f86016bdfa7770dbddf633223a63284ce5259e5
bugzilla: 51493

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

[ Upstream commit 38c26ff3 ]

When bdx_read_mac() fails, no error return code of bdx_probe()
is assigned.
To fix this bug, err is assigned with -EFAULT as error return code.

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 b6160d7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment