diff options
author | Andi Kleen <andi@firstfloor.org> | 2008-08-11 23:11:05 +0200 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-08-11 15:23:50 -0700 |
commit | 9dd1e9eb5cd6f79d4efda57db4e26dfa31ff9ae5 (patch) | |
tree | 5065612bcc36b38c425f6c78b7b2cec9fac1d1d8 /arch/x86/pci/legacy.c | |
parent | 10fec20ef5eec1c91913baec1225400f0d02df40 (diff) | |
download | linux-3.10-9dd1e9eb5cd6f79d4efda57db4e26dfa31ff9ae5.tar.gz linux-3.10-9dd1e9eb5cd6f79d4efda57db4e26dfa31ff9ae5.tar.bz2 linux-3.10-9dd1e9eb5cd6f79d4efda57db4e26dfa31ff9ae5.zip |
x86/PCI: allow scanning of 255 PCI busses
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>
Diffstat (limited to 'arch/x86/pci/legacy.c')
-rw-r--r-- | arch/x86/pci/legacy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/legacy.c b/arch/x86/pci/legacy.c index ec9ce35e44d..b722dd481b3 100644 --- a/arch/x86/pci/legacy.c +++ b/arch/x86/pci/legacy.c @@ -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"); |