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 07:57:35 +0000 (09:57 +0200)
commitb076fa169465024ba2abd22300a1c814452bc484
tree2fe53b6ae40bb44fe155026e2caf283558df5080
parentdc5c5b74075f79f8dcfb8ca3a534f6789df5efe5
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