Re: [PATCH] misc: alcor_pci: fix null-ptr-deref when there is no PCI bridge

From: Tong Zhang
Date: Tue May 11 2021 - 17:32:38 EST


On Tue, May 11, 2021 at 10:57 AM Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> I suggest, again, steping back up and just not calling this function if
> you are on the root, as it does not make any sense to do so for a device
> that is not there.
>
Agreed.
I did a revision based on your suggestion and sent it as v2.
Thanks,
- Tong

> thanks,
>
> greg k-h