JFFS2: don't fail on bitflips in OOB
authorBrian Norris <computersforpeace@gmail.com>
Fri, 31 Aug 2012 22:01:19 +0000 (15:01 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:34:13 +0000 (15:34 +0100)
commit74d83beaa229aac7d126ac1ed9414658ff1a89d2
tree72100bf61281de2d6201c7d8e31ea2e4de5d209b
parent6f12f59a5f0dc014209bcc21d5689a6611e1c1e7
JFFS2: don't fail on bitflips in OOB

JFFS2 was designed without thought for OOB bitflips, it seems, but they
can occur and will be reported to JFFS2 via mtd_read_oob()[1]. We don't
want to fail on these transactions, since the data was corrected.

[1] Few drivers report bitflips for OOB-only transactions. With such
    drivers, this patch should have no effect.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/wbuf.c