Commit 8a06ff9f authored by Adam Jackson's avatar Adam Jackson

Fix another usage of MAX_PCI_DEVICES.

Fixes cases where the VGA device is above the 128th device on the system.
parent 928836a5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment