edac cell: fix incorrect edac_mode
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 19 Oct 2008 03:28:35 +0000 (20:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:52:40 +0000 (08:52 -0700)
commit3b274f44d2ca05f719fe39947b6a5293a2dbd8fd
tree41b549f21088f591965bb77527dc8077bf986730
parentb64fd291acd8c921b4757faed1d4dded31c27edf
edac cell: fix incorrect edac_mode

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>
Cc: <stable@kernel.org> [2.6.27.x, 2.6.26.x. 2.6.25.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/cell_edac.c