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

Bjorn Helgaas helgaas at kernel.org
Thu Jul 9 15:21:30 EDT 2020


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.



More information about the linux-arm-kernel mailing list