diff options
author | Fedor Pchelkin <[email protected]> | 2024-02-29 23:42:36 +0300 |
---|---|---|
committer | Richard Weinberger <[email protected]> | 2024-07-12 19:42:46 +0200 |
commit | 745d9f4a31defec731119ee8aad8ba9f2536dd9a (patch) | |
tree | fef83adcbdf96c28dadf86ee8dfe9eee6c8a1240 /tools/perf/util/trace-event-scripting.c | |
parent | 22a40d14b572deb80c0648557f4bd502d7e83826 (diff) |
ubi: eba: properly rollback inside self_check_eba
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: [email protected]
Signed-off-by: Fedor Pchelkin <[email protected]>
Reviewed-by: Zhihao Cheng <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions