linux-stable/drivers/mtd/ubi
Zhang Yi 5d1442eeb9 ubi: correct the calculation of fastmap size
[ Upstream commit 7f174ae4f3 ]

Now that the calculation of fastmap size in ubi_calc_fm_size() is
incorrect since it miss each user volume's ubi_fm_eba structure and the
Internal UBI volume info. Let's correct the calculation.

Cc: stable@vger.kernel.org
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-03 15:19:27 +02:00
..
attach.c
block.c
build.c ubi: Refuse attaching if mtd's erasesize is 0 2023-10-10 22:00:39 +02:00
cdev.c
debug.c
debug.h
eba.c ubi: Fix return value overwrite issue in try_write_vid_and_data() 2023-05-11 23:03:05 +09:00
fastmap-wl.c ubi: fastmap: Fix missed fm_anchor PEB in wear-leveling after disabling fastmap 2023-03-11 13:55:21 +01:00
fastmap.c ubi: correct the calculation of fastmap size 2024-04-03 15:19:27 +02:00
gluebi.c
io.c
kapi.c
Kconfig
Makefile
misc.c
ubi-media.h
ubi.h
upd.c
vmt.c ubi: Fix possible null-ptr-deref in ubi_free_volume() 2023-03-11 13:55:20 +01:00
vtbl.c ubi: Check for too small LEB size in VTBL code 2024-04-03 15:19:27 +02:00
wl.c ubi: Fix deadlock caused by recursively holding work_sem 2023-04-20 12:35:14 +02:00
wl.h