ChangeSet 1.1361, 2003/06/19 16:10:44-07:00, greg@kroah.com PCI: merge bits missed from the pci locking patch. drivers/pci/bus.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -Nru a/drivers/pci/bus.c b/drivers/pci/bus.c --- a/drivers/pci/bus.c Thu Jun 19 16:32:03 2003 +++ b/drivers/pci/bus.c Thu Jun 19 16:32:03 2003 @@ -93,7 +93,11 @@ continue; device_add(&dev->dev); + + spin_lock(&pci_bus_lock); list_add_tail(&dev->global_list, &pci_devices); + spin_unlock(&pci_bus_lock); + pci_proc_attach_device(dev); pci_create_sysfs_dev_files(dev); @@ -108,7 +112,9 @@ * it and then scan for unattached PCI devices. */ if (dev->subordinate && list_empty(&dev->subordinate->node)) { + spin_lock(&pci_bus_lock); list_add_tail(&dev->subordinate->node, &dev->bus->children); + spin_unlock(&pci_bus_lock); pci_bus_add_devices(dev->subordinate); } }