Commit 80b08575 authored by Yang Yingliang's avatar Yang Yingliang Committed by Zheng Zengkai
Browse files

ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one()

stable inclusion
from stable-v5.10.118
commit d4c6e5cebcf5b5d4f90d61074fdbb1cdcb7cdc60
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L686

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d4c6e5cebcf5b5d4f90d61074fdbb1cdcb7cdc60



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

[ Upstream commit 51ca86b4 ]

Fix the missing pci_disable_device() before return
from tulip_init_one() in the error handling case.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220506094250.3630615-1-yangyingliang@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent eb793ada
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment