[PATCH v3] erofs: fix error handling in z_erofs_init_decompressor
Chao Yu
chao at kernel.org
Mon Sep 9 16:15:13 AEST 2024
On 2024/9/5 14:00, Sandeep Dhavale wrote:
> If we get a failure at the first decompressor init (i = 0),
> the clean up while loop could enter infinite loop due to wrong while
> check. Check the value of i now to see if we need any clean up at all.
>
> Fixes: 5a7cce827ee9 ("erofs: refine z_erofs_{init,exit}_subsystem()")
> Reported-by: liujinbao1 <liujinbao1 at xiaomi.com>
> Signed-off-by: Sandeep Dhavale <dhavale at google.com>
Reviewed-by: Chao Yu <chao at kernel.org>
Thanks,
More information about the Linux-erofs
mailing list