diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2012-09-13 18:53:58 +0200 |
---|---|---|
committer | Borislav Petkov <bp@alien8.de> | 2012-11-28 11:54:40 +0100 |
commit | 16a528ee3975c860dc93fbfc718fe9aa25ed92bc (patch) | |
tree | ea0d20d3544df6dfe2977634d1a4cc837f80b964 /drivers/edac/amd64_edac.c | |
parent | 921a689965c26ae6fde12ebaadb4183cbfdb01fb (diff) | |
download | linux-16a528ee3975c860dc93fbfc718fe9aa25ed92bc.tar.bz2 |
EDAC: Fix csrow size reported in sysfs
On csrow-based memory controllers, we combine the csrow size from both
channels and there's no need to do that again in csrow_size_show which
leads to double the size of a csrow.
Fix it.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.c')
-rw-r--r-- | drivers/edac/amd64_edac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 307ff66266a0..f74a684269ff 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2174,6 +2174,7 @@ static int init_csrows(struct mem_ctl_info *mci) dimm->edac_mode = edac_mode; dimm->nr_pages = nr_pages; } + csrow->nr_pages = nr_pages; } return empty; |