ubi: fastmap: Only produce the initial anchor PEB when fastmap is used
authorHou Tao <houtao1@huawei.com>
Mon, 10 Feb 2020 13:26:35 +0000 (21:26 +0800)
committerRichard Weinberger <richard@nod.at>
Mon, 30 Mar 2020 21:02:36 +0000 (23:02 +0200)
commit294a8dbe34d3b2f6e48eb9058ed21d7fe9348b6b
tree0d3acda683d6039fa6d04ee88752b325d091ebe4
parentc16f39d14a7e0ec59881fbdb22ae494907534384
ubi: fastmap: Only produce the initial anchor PEB when fastmap is used

Don't produce the initial anchor PEB when ubi device is read-only
or fastmap is disabled, else the resulting PEB will be unusable
to any volume.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/wl.c