mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-21 13:20:04 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -1093,7 +1093,7 @@ xf86GetPciConfigFromTag(PCITAG Tag)
|
||||||
pciConfigPtr pDev;
|
pciConfigPtr pDev;
|
||||||
int i = 0;
|
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)
|
if (Tag == pDev->tag)
|
||||||
return pDev;
|
return pDev;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue