From: Kristen Accardi Date: Wed, 18 Jan 2006 00:57:01 +0000 (-0800) Subject: [PATCH] PCI: really fix parent's subordinate busnr X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e3ac86d8b3f5cee1afaa3e9e6984d0321149b948;p=linux-beck.git [PATCH] PCI: really fix parent's subordinate busnr After you find the maximum value of the subordinate buses below the child bus, you must fix the parent's subordinate bus number again, otherwise it may be too small. Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index adfad4fd6a13..63751a283817 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -537,6 +537,11 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max pci_fixup_parent_subordinate_busnr(child, max); /* Now we can scan all subordinate buses... */ max = pci_scan_child_bus(child); + /* + * now fix it up again since we have found + * the real value of max. + */ + pci_fixup_parent_subordinate_busnr(child, max); } else { /* * For CardBus bridges, we leave 4 bus numbers