summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorFedor Pchelkin <pchelkin@ispras.ru>2024-02-29 23:42:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-03 08:54:23 +0200
commit3aba1db19b3800c577ca90dfdbe6bd6f8261b321 (patch)
tree46f5a89aa7629de46bae50725587b2ad2b6e3dbb /block
parent17c312eb11597571e6afbc29581e367afa4db764 (diff)
downloadlinux-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