ZhaoLong Wang 9277b3a649 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>
2024-02-25 21:39:08 +01:00
..
2024-01-09 15:40:59 -08:00
2023-10-19 10:31:44 +02:00
2024-01-09 15:40:59 -08:00
2024-01-11 13:58:04 -08:00
2022-09-20 10:40:30 +02:00
2022-09-19 18:14:53 +02:00
2023-06-22 23:00:43 +02:00
2023-12-14 16:43:15 +01:00