]> git.baikalelectronics.ru Git - kernel.git/commit
ubi: Deal with interrupted erasures in WL
authorRichard Weinberger <richard@nod.at>
Wed, 24 Aug 2016 12:36:13 +0000 (14:36 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 2 Oct 2016 20:49:54 +0000 (22:49 +0200)
commitca7c3dc52377f36187b77975a084d844eb6541e4
tree769be0c29f17a9c30342e5d07813d03390cb87ce
parentdd42b71695e648eb40a649e0b49aa5b9a83d0197
ubi: Deal with interrupted erasures in WL

When Fastmap is used we can face here an -EBADMSG
since Fastmap cannot know about unmaps.
If the erasure was interrupted the PEB may show ECC
errors and UBI would go to ro-mode as it assumes
that the PEB was check during attach time, which is
not the case with Fastmap.

Cc: <stable@vger.kernel.org>
Fixes: 84a12fae96 ("UBI: Add fastmap core")
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/wl.c