linux-stable/drivers/mtd/ubi
Zhang Yi 910b3e4149 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:32:07 +02:00
..
attach.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00
block.c ubi: block: fix memleak in ubiblock_create() 2024-01-06 23:52:51 +01:00
build.c ubi: fastmap: Add module parameter to control reserving filling pool PEBs 2023-10-28 23:15:44 +02:00
cdev.c ubi: fastmap: Add control in 'UBI_IOCATT' ioctl to reserve PEBs for filling pools 2023-10-28 23:16:00 +02:00
debug.c ubi: Reserve sufficient buffer length for the input mask 2024-01-06 23:45:44 +01:00
debug.h ubi: Add six fault injection type for testing 2024-01-06 23:41:40 +01:00
eba.c ubi: fastmap: Wait until there are enough free PEBs before filling pools 2023-10-28 22:43:40 +02:00
fastmap-wl.c ubi: fastmap: Fix lapsed wear leveling for first 64 PEBs 2023-10-28 23:14:55 +02:00
fastmap.c ubi: correct the calculation of fastmap size 2024-04-03 15:32:07 +02:00
gluebi.c mtd: ubi: gluebi: Fix misnamed function parameter documentation 2020-11-20 12:37:32 +01:00
io.c ubi: Add six fault injection type for testing 2024-01-06 23:41:40 +01:00
kapi.c mtd: ubi: block: wire-up device parent 2023-02-13 22:24:10 +01:00
Kconfig ubi: Use the fault injection framework to enhance the fault injection capability 2024-01-06 23:38:55 +01:00
Makefile
misc.c ubi: use correct names in function kernel-doc comments 2023-02-05 22:36:39 +01:00
ubi-media.h ubi: ubi-media.h: Fix comment typo 2022-09-21 11:12:18 +02:00
ubi.h ubi: Add six fault injection type for testing 2024-01-06 23:41:40 +01:00
upd.c
vmt.c ubi: Fix possible null-ptr-deref in ubi_free_volume() 2023-02-02 21:13:44 +01:00
vtbl.c ubi: Check for too small LEB size in VTBL code 2024-04-03 15:32:07 +02:00
wl.c ubi: fastmap: Get wl PEB even ec beyonds the 'max' if free PEBs are run out 2023-10-28 23:07:54 +02:00
wl.h ubi: fastmap: Fix lapsed wear leveling for first 64 PEBs 2023-10-28 23:14:55 +02:00