From: Todd Poynor Date: Sat, 5 Nov 2005 03:21:15 +0000 (+0000) Subject: [MTD] NAND: nand_write_ecc memory and OOB corruption X-Git-Tag: v2.6.15-rc1~448^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=868801e561d5d6df40a66197e2f803a109c19e7a;p=pandora-kernel.git [MTD] NAND: nand_write_ecc memory and OOB corruption Nathan Roberts noticed the nand_write_ecc index into oobbuf goes out of bounds when crossing an erase block boundary, causing incorrect OOB data to be written and corrupting memory. Reset the index to zero after re-preparing oobbuf for a new erase block. Signed-off-by: Todd Poynor Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed