| Submitter | Bjorn Helgaas |
|---|---|
| Date | Sept. 10, 2012, 11:43 p.m. |
| Message ID | <CAErSpo6mqXN=ujr=gBkHg0wmgf46ta2NaMuST3k8nOftGth7OA@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/182973/ |
| State | Superseded |
| Headers | show |
Comments
Patch
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 3cdba8b..a8f1bf6 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -729,7 +729,8 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, /* Check if setup is sensible at all */ if (!pass && - (primary != bus->number || secondary <= bus->number)) { + (primary != bus->number || secondary <= bus->number || + secondary > subordinate)) { dev_dbg(&dev->dev, "bus configuration invalid, reconfiguring\n"); broken = 1;