summaryrefslogtreecommitdiff
path: root/src/intel_module.c
diff options
context:
space:
mode:
authorStefan Dirsch <sndirsch@suse.de>2011-07-22 12:21:01 +0200
committerEric Anholt <eric@anholt.net>2011-08-18 08:10:52 -0700
commitd330f3751e484d28293fc593a20375a31b068bc7 (patch)
tree6e79554c4496dc34f715a32e3f2cb2ba392bfe1b /src/intel_module.c
parentccddff087df0c567c28416941b175be81190a1d3 (diff)
Fix array size calculation for intel_pci_probe().
Diffstat (limited to 'src/intel_module.c')
-rw-r--r--src/intel_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_module.c b/src/intel_module.c
index 499814eb..cd9c1a38 100644
--- a/src/intel_module.c
+++ b/src/intel_module.c
@@ -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;