]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: fix missing pci_disable_device() on error in stmmac_pci_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 10 May 2022 03:13:16 +0000 (11:13 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 May 2022 02:12:57 +0000 (19:12 -0700)
commit53fc8a4c89fadcfe360b32582162044b4dd88eaa
treec5d1e04f1e506525aa6d1554582cda40094fc146
parentba18d264f27cb301139cf84cbdbc31da22129351
net: stmmac: fix missing pci_disable_device() on error in stmmac_pci_probe()

Switch to using pcim_enable_device() to avoid missing pci_disable_device().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220510031316.1780409-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c