]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 6 May 2022 09:42:50 +0000 (17:42 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:22:44 +0000 (09:22 +0200)
commit558eb5885f67e561f499e544bb9ee3274bdae2c6
tree3e89d5002dc24e8e17fe336a294b743cebc13b5a
parent974275dabd62dd81e4e454353b833cc8f9aaebea
ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one()

BugLink: https://bugs.launchpad.net/bugs/1981375
[ Upstream commit 51ca86b4c9c7c75f5630fa0dbe5f8f0bd98e3c3e ]

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220506094250.3630615-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/dec/tulip/tulip_core.c