[PATCH v2] erofs: Prevent entering an infinite loop when i is 0

Gao Xiang hsiangkao at linux.alibaba.com
Thu Aug 29 22:36:29 AEST 2024



On 2024/8/29 20:23, liujinbao1 wrote:
> From: liujinbao1 <liujinbao1 at xiaomi.com>
> 
> When i=0 and err is not equal to 0,
> the while(-1) loop will enter into an
> infinite loop. This patch avoids this issue
> 
> Signed-off-by: liujinbao1 <liujinbao1 at xiaomi.com>

Thanks for the patch:

Fixes: 5a7cce827ee9 ("erofs: refine z_erofs_{init,exit}_subsystem()")
Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>

Thanks,
Gao Xiang


More information about the Linux-erofs mailing list