]> err.no Git - linux-2.6/commitdiff
x86/PCI: allow scanning of 255 PCI busses
authorAndi Kleen <andi@firstfloor.org>
Mon, 11 Aug 2008 21:11:05 +0000 (23:11 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 11 Aug 2008 22:23:50 +0000 (15:23 -0700)
Fix an old off by one error in the legacy PCI bus check. 0xff
is a valid bus.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/pci/legacy.c

index ec9ce35e44d6afe51b2c63bafbe9d5e3053d68c4..b722dd481b3975b2b9b171203a42f6406b9cafed 100644 (file)
@@ -14,7 +14,7 @@ static void __devinit pcibios_fixup_peer_bridges(void)
        int n, devfn;
        long node;
 
-       if (pcibios_last_bus <= 0 || pcibios_last_bus >= 0xff)
+       if (pcibios_last_bus <= 0 || pcibios_last_bus > 0xff)
                return;
        DBG("PCI: Peer bridge fixup\n");