mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] i7300: Fix the memory alloc initialization
@ 2012-03-12 13:27 Mauro Carvalho Chehab
  0 siblings, 0 replies; only message in thread
From: Mauro Carvalho Chehab @ 2012-03-12 13:27 UTC (permalink / raw)
  Cc: Mauro Carvalho Chehab, Linux Edac Mailing List,
	Linux Kernel Mailing List

Instead of initializing with the total number of channels, it
should use the number of channels per branch.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
---
 drivers/edac/i7300_edac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/edac/i7300_edac.c b/drivers/edac/i7300_edac.c
index f9faf96..0ff0b26 100644
--- a/drivers/edac/i7300_edac.c
+++ b/drivers/edac/i7300_edac.c
@@ -1049,7 +1049,7 @@ static int __devinit i7300_init_one(struct pci_dev *pdev,
 	layers[0].size = MAX_BRANCHES;
 	layers[0].is_csrow = false;
 	layers[1].type = EDAC_MC_LAYER_CHANNEL;
-	layers[1].size = MAX_CHANNELS;
+	layers[1].size = MAX_CH_PER_BRANCH;
 	layers[1].is_csrow = true;
 	layers[2].type = EDAC_MC_LAYER_SLOT;
 	layers[2].size = MAX_SLOTS;
-- 
1.7.8


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-12 13:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-12 13:27 [PATCH] i7300: Fix the memory alloc initialization Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®