Skip to content

Commit

Permalink
x86/PCI: allow scanning of 255 PCI busses
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Jesse Barnes committed Aug 11, 2008
1 parent 10fec20 commit 9dd1e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/pci/legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 9dd1e9e

Please sign in to comment.