From: Joakim Tjernlund Date: Thu, 28 May 2009 15:43:59 +0000 (+0200) Subject: jffs2: Fix corruption when flash erase/write failure X-Git-Tag: v2.6.30-rc8~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e2962801bbb4e740c501ca687d5cb857929c04;p=pandora-kernel.git jffs2: Fix corruption when flash erase/write failure Erase errors such as: "Newly-erased block contained word 0xa4ef223e at offset 0x0296a014" and failure to write the clean marker, moves the offending erase block to erasing list before calling jffs2_erase_failed(). This is bad as jffs2_erase_failed() will also move the block to the bad_list, but is now moving the wrong block, causing FS corruption. Signed-off-by: Joakim Tjernlund Signed-off-by: David Woodhouse --- Reading git-diff-tree failed