Skip to content
Commit a5390aa6 authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

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: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 844393f4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment