From patchwork Fri Jul 22 10:21:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Hopf X-Patchwork-Id: 998582 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6MAM5xC027180 for ; Fri, 22 Jul 2011 10:22:26 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C24779E8BB for ; Fri, 22 Jul 2011 03:22:04 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTP id 14FA49E793 for ; Fri, 22 Jul 2011 03:21:47 -0700 (PDT) Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 96BDD86EE4 for ; Fri, 22 Jul 2011 12:21:45 +0200 (CEST) From: Matthias Hopf To: Intel GFX Date: Fri, 22 Jul 2011 12:21:01 +0200 Message-Id: <1311330061-10084-1-git-send-email-mhopf@suse.de> X-Mailer: git-send-email 1.7.3.4 Subject: [Intel-gfx] [PATCH] Fix array size calculation for intel_pci_probe(). X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 22 Jul 2011 10:23:09 +0000 (UTC) From: Stefan Dirsch --- src/intel_module.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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;