diff options
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 6e34498ec9f0..f340c947d8cb 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -852,11 +852,12 @@ int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass) | |||
852 | * this case we only re-scan this bus. */ | 852 | * this case we only re-scan this bus. */ |
853 | child = pci_find_bus(pci_domain_nr(bus), max+1); | 853 | child = pci_find_bus(pci_domain_nr(bus), max+1); |
854 | if (!child) { | 854 | if (!child) { |
855 | child = pci_add_new_bus(bus, dev, ++max); | 855 | child = pci_add_new_bus(bus, dev, max+1); |
856 | if (!child) | 856 | if (!child) |
857 | goto out; | 857 | goto out; |
858 | pci_bus_insert_busn_res(child, max, 0xff); | 858 | pci_bus_insert_busn_res(child, max+1, 0xff); |
859 | } | 859 | } |
860 | max++; | ||
860 | buses = (buses & 0xff000000) | 861 | buses = (buses & 0xff000000) |
861 | | ((unsigned int)(child->primary) << 0) | 862 | | ((unsigned int)(child->primary) << 0) |
862 | | ((unsigned int)(child->busn_res.start) << 8) | 863 | | ((unsigned int)(child->busn_res.start) << 8) |