erofs: fix potential return value overflow of z_erofs_shrink_scan()
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 14 Jan 2025 04:00:58 +0000 (12:00 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 16 Jan 2025 19:19:39 +0000 (03:19 +0800)
commitdb902986dee453bfb5835cbc8efa67154ab34caf
treee80916b639e62ac137cb4a0c1dd8dd23e7990a2a
parent9f74ae8c9ac97a79f9d45c92bd8ac8598e17f21f
erofs: fix potential return value overflow of z_erofs_shrink_scan()

z_erofs_shrink_scan() could return small numbers due to the mistyped
`freed`.

Although I don't think it has any visible impact.

Fixes: 3883a79abd02 ("staging: erofs: introduce VLE decompression support")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250114040058.459981-1-hsiangkao@linux.alibaba.com
fs/erofs/zdata.c