Skip to content

Commit 545da94

Browse files
ozbenhpaulusmack
authored andcommitted
[POWERPC] Fix sys_pciconfig_iobase bus matching
A stupid bug has been plaguing the sys_pciconfig_iobase on ppc64. It wasn't noticed until recently as it seems to not affect G5s but it's been causing problems running X servers on some other machines recently. The bus number matching was bogus. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 05916ee commit 545da94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/kernel/pci_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ long sys_pciconfig_iobase(long which, unsigned long in_bus,
14301430

14311431
for (ln = pci_root_buses.next; ln != &pci_root_buses; ln = ln->next) {
14321432
bus = pci_bus_b(ln);
1433-
if (in_bus >= bus->number && in_bus < (bus->number + bus->subordinate))
1433+
if (in_bus >= bus->number && in_bus <= bus->subordinate)
14341434
break;
14351435
bus = NULL;
14361436
}

0 commit comments

Comments
 (0)