From 95d428ff2b9a1847e2aa172f3ccb537ec0c4ecc4 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 5 Mar 2012 13:16:29 -0300 Subject: [PATCH] Fix memory error count Signed-off-by: Mauro Carvalho Chehab --- drivers/edac/amd64_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index f9131a9e7235..df2c04837670 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2226,7 +2226,7 @@ static int init_csrows(struct mem_ctl_info *mci) for (j = 0; j < pvt->channel_count; j++) { csrow->channels[j].dimm->mtype = mtype; csrow->channels[j].dimm->edac_mode = edac_mode; - csrow->channels[j].dimm->nr_pages = nr_pages; + csrow->channels[j].dimm->nr_pages = nr_pages / pvt->channel_count; } -- 2.51.0