]> git.baikalelectronics.ru Git - 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)
commit5a2db2f2b392bfbd2771b598be65af965347f8c7
treec7c84410c2db3ca93e912135cd3c1722d4b644ac
parentd6762041fc770a6d58beba2c34c86586400ef96b
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