linux-stable/drivers/mtd/ubi
Zhihao Cheng 801d547fde ubi: fastmap: Return error code if memory allocation fails in add_aeb()
commit c3c07fc25f upstream.

Abort fastmap scanning and return error code if memory allocation fails
in add_aeb(). Otherwise ubi will get wrong peb statistics information
after scanning.

Fixes: dbb7d2a88d ("UBI: Add fastmap core")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-20 09:08:25 +02:00
..
Kconfig
Makefile
attach.c
block.c
build.c ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl 2022-04-20 09:08:25 +02:00
cdev.c
debug.c ubi: Fix seq_file usage in detailed_erase_block_info debugfs file 2020-05-27 16:42:53 +02:00
debug.h
eba.c
fastmap-wl.c
fastmap.c ubi: fastmap: Return error code if memory allocation fails in add_aeb() 2022-04-20 09:08:25 +02:00
gluebi.c
io.c
kapi.c
misc.c
ubi-media.h
ubi.h
upd.c
vmt.c ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl 2022-04-20 09:08:25 +02:00
vtbl.c
wl.c ubi: check kthread_should_stop() after the setting of task state 2020-11-05 11:07:03 +01:00
wl.h