]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit0807ce0b010418a191e0e4009803b2d74c3245d5
treec5d1e04f1e506525aa6d1554582cda40094fc146
parent12a4d677b1c34717443470c1492fe520638ef39a
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