PCI: Assign resources before drivers claim devices (pci_scan_root_bus())
[deliverable/linux.git] / arch / ia64 / sn / kernel / io_init.c
index 0b5ce82d203dd5a908d01609b6f7377d2053161d..1be65eb074ece698501600ee62fa8887b4f5c9a3 100644 (file)
@@ -271,7 +271,9 @@ sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus)
        if (bus == NULL) {
                kfree(res);
                kfree(controller);
+               return;
        }
+       pci_bus_add_devices(bus);
 }
 
 /*
This page took 0.092012 seconds and 5 git commands to generate.