]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Oct 2022 02:46:35 +0000 (19:46 -0700)
commit53c8dcca14b679a51055416700666926302c347b
treeab60f8a54277b14de70a8da582d448656eafa4e2
parent2c4074e4ce65d7571928c17e3837db773c37d3fc
net: ksz884x: fix missing pci_disable_device() on error in pcidev_init()

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: c472a63a1a55 ("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>
drivers/net/ethernet/micrel/ksz884x.c