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:
parent
928836a5ab
commit
8a06ff9ffa
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user