[POWERPC] Fix sys_pciconfig_iobase bus matching
[sfrench/cifs-2.6.git] / arch / powerpc / kernel / pci_64.c
index 73c59ec4912059d5693f8026a95ff946c4701e9d..01f18c683407ac1cf8d0ec680d086b23dc63e5b9 100644 (file)
@@ -1430,7 +1430,7 @@ long sys_pciconfig_iobase(long which, unsigned long in_bus,
 
        for (ln = pci_root_buses.next; ln != &pci_root_buses; ln = ln->next) {
                bus = pci_bus_b(ln);
-               if (in_bus >= bus->number && in_bus < (bus->number + bus->subordinate))
+               if (in_bus >= bus->number && in_bus <= bus->subordinate)
                        break;
                bus = NULL;
        }