summaryrefslogtreecommitdiffstats
path: root/arch/x86/pci
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-08-11 23:11:05 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-08-11 15:23:50 -0700
commit9dd1e9eb5cd6f79d4efda57db4e26dfa31ff9ae5 (patch)
tree5065612bcc36b38c425f6c78b7b2cec9fac1d1d8 /arch/x86/pci
parent10fec20ef5eec1c91913baec1225400f0d02df40 (diff)
downloadop-kernel-dev-9dd1e9eb5cd6f79d4efda57db4e26dfa31ff9ae5.zip
op-kernel-dev-9dd1e9eb5cd6f79d4efda57db4e26dfa31ff9ae5.tar.gz
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')
-rw-r--r--arch/x86/pci/legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/legacy.c b/arch/x86/pci/legacy.c
index ec9ce35e4..b722dd4 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");
OpenPOWER on IntegriCloud