From 8a06ff9ffa4816d192e58e43e7fe569b97b4dd7c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 28 Jun 2007 16:41:28 -0400 Subject: Fix another usage of MAX_PCI_DEVICES. Fixes cases where the VGA device is above the 128th device on the system. --- hw/xfree86/os-support/bus/Pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/xfree86') 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; } -- cgit v1.2.3