diff options
author | Adam Jackson <ajax@benzedrine.nwnk.net> | 2007-06-28 16:41:28 -0400 |
---|---|---|
committer | Adam Jackson <ajax@benzedrine.nwnk.net> | 2007-06-28 16:41:28 -0400 |
commit | 8a06ff9ffa4816d192e58e43e7fe569b97b4dd7c (patch) | |
tree | d7d59b9a26a0b4d38e7abc64b68f5e791aaee437 /hw/xfree86 | |
parent | 928836a5abd85466e920eb487fab9ccb295e0c5b (diff) |
Fix another usage of MAX_PCI_DEVICES.
Fixes cases where the VGA device is above the 128th device on the system.
Diffstat (limited to 'hw/xfree86')
-rw-r--r-- | hw/xfree86/os-support/bus/Pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/bus/Pci.c b/hw/xfree86/os-support/bus/Pci.c index bc5e11fb8..30f7667fa 100644 --- a/hw/xfree86/os-support/bus/Pci.c +++ b/hw/xfree86/os-support/bus/Pci.c @@ -1093,7 +1093,7 @@ xf86GetPciConfigFromTag(PCITAG Tag) pciConfigPtr pDev; int i = 0; - for (i = 0 ; (pDev = pci_devp[i]) && i <= MAX_PCI_DEVICES; i++) { + for (i = 0 ; (pDev = pci_devp[i]) && i <= xf86MaxPciDevs; i++) { if (Tag == pDev->tag) return pDev; } |