Skip to content
Commit 3fc3e45f authored by Sandeep Dhavale's avatar Sandeep Dhavale Committed by Gao Xiang
Browse files

erofs: fix error handling in z_erofs_init_decompressor



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: 5a7cce82 ("erofs: refine z_erofs_{init,exit}_subsystem()")
Reported-by: default avatarliujinbao1 <liujinbao1@xiaomi.com>
Signed-off-by: default avatarSandeep Dhavale <dhavale@google.com>
Reviewed-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20240905060027.2388893-1-dhavale@google.com


Signed-off-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
parent 59aadaa7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment