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:41:21 +0000 (08:41 +0200)
commitf3f6a40aac619ee784c983c884d0d9c399e41158
tree916a574b88dd23398964d75c8ddf18d195975eac
parentc5e8f441b6b5fb6cb25ecd1d621144ff80794ec6
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