[PATCH] acpi bridge hotadd: Remove hot-plugged devices that could not be allocated...
[deliverable/linux.git] / drivers / pci / setup-bus.c
index 1ba84be0b4c0fa041efcb9fc086302eaec887079..6b628de948af522fd3f00fdb7b4725a2c6cf275d 100644 (file)
@@ -72,7 +72,10 @@ pbus_assign_resources_sorted(struct pci_bus *bus)
        for (list = head.next; list;) {
                res = list->res;
                idx = res - &list->dev->resource[0];
-               pci_assign_resource(list->dev, idx);
+               if (pci_assign_resource(list->dev, idx)) {
+                       res->start = 0;
+                       res->flags = 0;
+               }
                tmp = list;
                list = list->next;
                kfree(tmp);
This page took 0.029746 seconds and 5 git commands to generate.