[PATCH] net: stmmac: fix missing pci_disable_device() on error in stmmac_pci_probe()

Jakub Kicinski kuba at kernel.org
Mon May 9 15:55:25 PDT 2022


On Fri, 6 May 2022 17:40:39 +0800 Yang Yingliang wrote:
> Fix the missing pci_disable_device() before return
> from stmmac_pci_probe() in the error handling case.
> 
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Yang Yingliang <yangyingliang at huawei.com>

Here indeed pcim_enable_device() seems like a better fit.



More information about the linux-arm-kernel mailing list