diff options
| author | Fedor Pchelkin <pchelkin@ispras.ru> | 2024-02-29 23:42:36 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-03 08:54:23 +0200 |
| commit | 3aba1db19b3800c577ca90dfdbe6bd6f8261b321 (patch) | |
| tree | 46f5a89aa7629de46bae50725587b2ad2b6e3dbb /block | |
| parent | 17c312eb11597571e6afbc29581e367afa4db764 (diff) | |
| download | linux-3aba1db19b3800c577ca90dfdbe6bd6f8261b321.tar.gz linux-3aba1db19b3800c577ca90dfdbe6bd6f8261b321.tar.bz2 linux-3aba1db19b3800c577ca90dfdbe6bd6f8261b321.zip | |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
