浏览代码

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>
Andi Kleen 16 年之前
父节点
当前提交
9dd1e9eb5c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/x86/pci/legacy.c

+ 1 - 1
arch/x86/pci/legacy.c

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