Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 5a7cce8 ("erofs: refine z_erofs_{init,exit}_subsystem()") Reported-by: liujinbao1 <[email protected]> Signed-off-by: Sandeep Dhavale <[email protected]> Reviewed-by: Gao Xiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gao Xiang <[email protected]>
- Loading branch information