All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias Hopf <mhopf@suse.de>
To: Intel GFX <intel-gfx@lists.freedesktop.org>
Subject: [PATCH] Fix array size calculation for intel_pci_probe().
Date: Fri, 22 Jul 2011 12:21:01 +0200	[thread overview]
Message-ID: <1311330061-10084-1-git-send-email-mhopf@suse.de> (raw)

From: Stefan Dirsch <sndirsch@suse.de>

---
 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;
-- 
1.7.3.4

             reply	other threads:[~2011-07-22 10:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-22 10:21 Matthias Hopf [this message]
2011-07-22 10:25 ` [PATCH] Fix array size calculation for intel_pci_probe() Matthias Hopf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1311330061-10084-1-git-send-email-mhopf@suse.de \
    --to=mhopf@suse.de \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.