OrangePi_CM5/drivers/mtd/ubi
Zhihao Cheng 3ca47556d9 ubi: fastmap: Return error code if memory allocation fails in add_aeb()
commit c3c07fc25f37c157fde041b3a0c3dfcb1590cbce 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-08 14:40:43 +02:00
..
Kconfig
…
Makefile
…
attach.c
…
block.c
…
build.c
…
cdev.c
…
debug.c
…
debug.h
…
eba.c
…
fastmap-wl.c
…
fastmap.c
…
gluebi.c
…
io.c
…
kapi.c
…
misc.c
…
ubi-media.h
…
ubi.h
…
upd.c
…
vmt.c
…
vtbl.c
…
wl.c
…
wl.h
…