From: Mauro Carvalho Chehab Date: Mon, 5 Mar 2012 16:16:29 +0000 (-0300) Subject: Fix memory error count X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fhw_events_v4;p=users%2Fmchehab%2Fedac.git Fix memory error count Signed-off-by: Mauro Carvalho Chehab --- 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; }