diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-20 16:50:07 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-11-10 11:17:52 -0800 |
commit | e3cf06d9ba60f5d60e22f41c698346ba34b8212a (patch) | |
tree | 60fed31d8abd98daeb92d4e841187eb502d59b76 | |
parent | d7b1831d957c4d8fd129ad99d53328be35a3afa5 (diff) | |
download | linux-stable-e3cf06d9ba60f5d60e22f41c698346ba34b8212a.tar.gz linux-stable-e3cf06d9ba60f5d60e22f41c698346ba34b8212a.tar.bz2 linux-stable-e3cf06d9ba60f5d60e22f41c698346ba34b8212a.zip |
edac cell: fix incorrect edac_mode
commit 3b274f44d2ca05f719fe39947b6a5293a2dbd8fd upstream
The cell_edac driver is setting the edac_mode field of the csrow's to an
incorrect value, causing the sysfs show routine for that field to go out
of an array bound and Oopsing the kernel when used.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/edac/cell_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/cell_edac.c b/drivers/edac/cell_edac.c index b54112ffd282..00b8539aa24b 100644 --- a/drivers/edac/cell_edac.c +++ b/drivers/edac/cell_edac.c @@ -141,7 +141,7 @@ static void __devinit cell_edac_init_csrows(struct mem_ctl_info *mci) csrow->nr_pages = (r.end - r.start + 1) >> PAGE_SHIFT; csrow->last_page = csrow->first_page + csrow->nr_pages - 1; csrow->mtype = MEM_XDR; - csrow->edac_mode = EDAC_FLAG_EC | EDAC_FLAG_SECDED; + csrow->edac_mode = EDAC_SECDED; dev_dbg(mci->dev, "Initialized on node %d, chanmask=0x%x," " first_page=0x%lx, nr_pages=0x%x\n", |