]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI: don't publish new root bus until it's fully initialized
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 24 Feb 2012 03:18:59 +0000 (20:18 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 24 Feb 2012 03:18:59 +0000 (20:18 -0700)
commita5390aa6dc3646b08bed421944cef0daf78ab994
treec7c84410c2db3ca93e912135cd3c1722d4b644ac
parent844393f4c5e309dd262b27796471c47e348b57a8
PCI: don't publish new root bus until it's fully initialized

When pci_create_root_bus() adds the new struct pci_bus to the global
pci_root_buses list, the bus becomes visible to other parts of the
kernel, so it should be fully initialized.

This patch delays adding the bus to the pci_root_buses list until after
all the struct pci_bus initialization is finished.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c