kernel_samsung_a53x/drivers/mtd/ubi
Fedor Pchelkin bd3c90a5b6 ubi: eba: properly rollback inside self_check_eba
commit 745d9f4a31defec731119ee8aad8ba9f2536dd9a upstream.

In case of a memory allocation failure in the volumes loop we can only
process the already allocated scan_eba and fm_eba array elements on the
error path - others are still uninitialized.

Found by Linux Verification Center (linuxtesting.org).

Fixes: 00abf3041590 ("UBI: Add self_check_eba()")
Cc: stable@vger.kernel.org
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:20:14 +01:00
..
attach.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
block.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
build.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eba.c ubi: eba: properly rollback inside self_check_eba 2024-11-23 23:20:14 +01:00
fastmap-wl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fastmap.c ubi: correct the calculation of fastmap size 2024-11-19 09:22:16 +01:00
gluebi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kapi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ubi-media.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ubi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
upd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vtbl.c ubi: Check for too small LEB size in VTBL code 2024-11-19 09:22:16 +01:00
wl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00