diff options
author | 2024-01-13 21:06:01 +0800 | |
---|---|---|
committer | 2024-02-25 21:39:08 +0100 | |
commit | 9277b3a64953c09e88a33adf59fb085e0a87d357 (patch) | |
tree | 9e0d4b3286fa4520b428a0c9e639b937acc56ab6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ubi: fix slab-out-of-bounds in ubi_eba_get_ldesc+0xfb/0x130 (diff) | |
download | wireguard-linux-9277b3a64953c09e88a33adf59fb085e0a87d357.tar.xz wireguard-linux-9277b3a64953c09e88a33adf59fb085e0a87d357.zip |
ubi: Correct the number of PEBs after a volume resize failure
In the error handling path `out_acc` of `ubi_resize_volume()`,
when `pebs < 0`, it indicates that the volume table record failed to
update when the volume was shrunk. In this case, the number of `ubi->avail_pebs`
and `ubi->rsvd_pebs` should be restored to their previous values to prevent
the UBI layer from reporting an incorrect number of available PEBs.
Signed-off-by: ZhaoLong Wang <wangzhaolong1@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions