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

Yang Yingliang yangyingliang at huawei.com
Mon May 9 18:15:58 PDT 2022


Hi,

On 2022/5/10 6:55, Jakub Kicinski wrote:
> 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.
OK, I will send a v2 later.

Thanks,
Yang
> .



More information about the linux-arm-kernel mailing list