Re: [PATCH] PCI: host-common: Fix driver remove NULL bridge->bus dereference

Lorenzo Pieralisi
2020-07-10T10:58:49Z

On Thu, Jul 09, 2020 at 02:21:30PM -0500, Bjorn Helgaas wrote:
> On Thu, Jul 09, 2020 at 10:10:02AM -0600, Rob Herring wrote:
> > Commit 2d716c37b5ce ("PCI: host-common: Use struct
> > pci_host_bridge.windows list directly") moved platform_set_drvdata()
> > before pci_host_probe() which results in the bridge->bus pointer being
> > NULL. Let's change the drvdata to the bridge struct instead to fix this.
> >
> > Fixes: 2d716c37b5ce ("PCI: host-common: Use struct pci_host_bridge.windows list directly")
>
> This commit is in -next, but not Linus's tree. Hopefully Lorenzo can
> just squash this fix into it.

Done, updated my pci/misc branch accordingly.

Lorenzo