]> git.karo-electronics.de Git - karo-tx-linux.git/commit
UBI: erase free PEB with bitflip in EC header
authorMatthieu CASTET <matthieu.castet@parrot.com>
Wed, 22 Aug 2012 14:03:46 +0000 (16:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Oct 2012 15:39:34 +0000 (08:39 -0700)
commit9c9cc09d08b083a38a341195597c6809113454c7
treed28292151a9523131ef3354b92127a7e6936cf97
parent27356a5bb5f72d7ebd42ee81df32492d0236a585
UBI: erase free PEB with bitflip in EC header

commit 193819cf2e6e395b1e1be2d36785dc5563a6edca upstream.

Without this patch, these PEB are not scrubbed until we put data in them.
Bitflip can accumulate latter and we can loose the EC header (but VID header
should be intact and allow to recover data).

Signed-off-by: Matthieu Castet <matthieu.castet@parrot.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/attach.c