xf86-video-intel: src/intel_module.c
Eric Anholt
anholt at kemper.freedesktop.org
Thu Aug 18 08:18:28 PDT 2011
src/intel_module.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d330f3751e484d28293fc593a20375a31b068bc7
Author: Stefan Dirsch <sndirsch at suse.de>
Date: Fri Jul 22 12:21:01 2011 +0200
Fix array size calculation for intel_pci_probe().
diff --git a/src/intel_module.c b/src/intel_module.c
index 499814e..cd9c1a3 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;
More information about the xorg-commit
mailing list