diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-05 16:01:20 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2018-06-22 12:31:08 +0200 |
commit | c2be367662f77746eeeb21bb5ea9ed275551ffd1 (patch) | |
tree | b4cec5c72f639077368ee6ccee59ef791eb10c26 /drivers/tc | |
parent | b6074ace6351522cb94c9351f195e1f0d4aeb431 (diff) |
ubi: fastmap: Erase outdated anchor PEBs during attachColibri-VF_LXDE-Image_2.8b3.111-20180626
The fastmap update code might erase the current fastmap anchor PEB
in case it doesn't find any new free PEB. When a power cut happens
in this situation we must not have any outdated fastmap anchor PEB
on the device, because that would be used to attach during next
boot.
The easiest way to make that sure is to erase all outdated fastmap
anchor PEBs synchronously during attach.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Richard Weinberger <richard@nod.at>
Fixes: dbb7d2a88d2a ("UBI: Add fastmap core")
Cc: <stable@vger.kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions