Re: [PATCH] erofs: fix potential return value overflow of z_erofs_shrink_scan()

From: Chao Yu
Date: Thu Jan 16 2025 - 03:32:07 EST


On 1/14/25 12:00, Gao Xiang wrote:
z_erofs_shrink_scan() could return small numbers due to the mistyped
`freed`.

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

Agreed, it's an extreme case...


Fixes: 3883a79abd02 ("staging: erofs: introduce VLE decompression support")
Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,