Fix array size calculation for intel_pci_probe().

This commit is contained in:
Stefan Dirsch 2011-07-22 12:21:01 +02:00 committed by Eric Anholt
parent ccddff087d
commit d330f3751e
1 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ static Bool intel_pci_probe(DriverPtr driver,
intptr_t match_data)
{
ScrnInfoPtr scrn;
PciChipsets intel_pci_chipsets[ARRAY_SIZE(intel_chipsets)];
PciChipsets intel_pci_chipsets[ARRAY_SIZE(_intel_chipsets)];
int i;
chipset_info = (void *)match_data;
@ -319,7 +319,7 @@ static Bool intel_pci_probe(DriverPtr driver,
#endif
}
for (i = 0; i < ARRAY_SIZE(intel_chipsets); i++) {
for (i = 0; i < ARRAY_SIZE(_intel_chipsets); i++) {
intel_pci_chipsets[i].numChipset = intel_chipsets[i].token;
intel_pci_chipsets[i].PCIid = intel_chipsets[i].token;
intel_pci_chipsets[i].dummy = NULL;