[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1318530294-6829-1-git-send-email-niso@kth.se>
Date: Thu, 13 Oct 2011 20:24:54 +0200
From: Niklas Söderlund <niso@....se>
To: mchehab@...hat.com
Cc: linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org,
Niklas Söderlund <niso@....se>
Subject: [PATCH] i7core_edac: fix erroneous size of static array
Signed-off-by: Niklas Söderlund <niso@....se>
---
drivers/edac/i7core_edac.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 70ad892..e0f6096 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -441,7 +441,7 @@ static inline int numrow(u32 row)
static inline int numcol(u32 col)
{
- static int cols[8] = {
+ static int cols[4] = {
1 << 10, 1 << 11, 1 << 12, -EINVAL,
};
return cols[col & 0x3];
--
1.7.7
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists