Files
linux/drivers
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-02-02 12:33:50 -05:00
2024-01-05 15:55:41 +05:30
2024-02-13 15:48:22 +00:00
2024-02-06 14:42:11 +00:00
2024-01-04 17:03:47 +01:00
2024-01-12 12:38:37 +01:00