diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-05 16:01:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-25 10:18:33 +0200 |
commit | f891ee97d9df8407ba1a46f9a7b89d8d57a70b7a (patch) | |
tree | 27e770d0da63f03fe27872fc3a8934c7641de812 /virt | |
parent | a5f958c4eadb8c9214c75b69330d4b5aa03d16e6 (diff) |
ubi: fastmap: Erase outdated anchor PEBs during attach
commit f78e5623f45bab2b726eec29dc5cefbbab2d0b1c upstream.
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions