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

Bjorn Helgaas
2020-07-09T19:23:26Z

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.