]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ksz884x: fix missing pci_disable_device() on error in pcidev_init()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 24 Oct 2022 13:13:38 +0000 (21:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 15:00:32 +0000 (00:00 +0900)
commitf5b5c69f2406da0cd663f017dcaea031224c55fb
treef4d89defb04575cfce2746797350018fc893eea4
parent96114fd3b5c85fe8e0f1ab8b732733a901183724
net: ksz884x: fix missing pci_disable_device() on error in pcidev_init()

[ Upstream commit 5da6d65590a0698199df44d095e54b0ed1708178 ]

pci_disable_device() need be called while module exiting, switch to use
pcim_enable(), pci_disable_device() will be called in pcim_release()
while unbinding device.

Fixes: 8ca86fd83eae ("net: Micrel KSZ8841/2 PCI Ethernet driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221024131338.2848959-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/micrel/ksz884x.c