summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorSandeep Dhavale <dhavale@google.com>2024-09-05 09:00:25 +0300
committerGao Xiang <hsiangkao@linux.alibaba.com>2024-09-09 19:46:34 +0300
commit3fc3e45fcdeaad4b7660b560fcbc827eb733f58e (patch)
tree88e9a4bc5eb27c5db300689afe428ce8ec058d63 /rust/helpers/helpers.c
parent59aadaa7ebafbc57e642d772cfc02c2b907e5b89 (diff)
downloadlinux-3fc3e45fcdeaad4b7660b560fcbc827eb733f58e.tar.xz
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: 5a7cce827ee9 ("erofs: refine z_erofs_{init,exit}_subsystem()") Reported-by: liujinbao1 <liujinbao1@xiaomi.com> Signed-off-by: Sandeep Dhavale <dhavale@google.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Reviewed-by: Chao Yu <chao@kernel.org> Link: https://lore.kernel.org/r/20240905060027.2388893-1-dhavale@google.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions