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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 06:39:50 +0000 (08:39 +0200)
commit80b17a26228c686fdda0cf511d8efda35f2073f5
tree354c8d8500cc8d90abb1e452741e74d653ef0222
parente33a0c38d15342bbed9d77c013fc1ec4dbbba84e
ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one()

[ 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>
drivers/net/ethernet/dec/tulip/tulip_core.c