Fix another usage of MAX_PCI_DEVICES.

Fixes cases where the VGA device is above the 128th device on the system.
This commit is contained in:
Adam Jackson 2007-06-28 16:41:28 -04:00
parent 928836a5ab
commit 8a06ff9ffa

View File

@ -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;
}