]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2025 09:02:05 +0000 (10:02 +0100)
commit0c246bf6768f4bc87e2737af177ea347d5dda122
treed5b0b6454ba3664670d6a86e3604c8e1807d81db
parent70fcb25472d90dd3b87cbee74b9eb68670b0c7b8
erofs: fix potential return value overflow of z_erofs_shrink_scan()

[ Upstream commit db902986dee453bfb5835cbc8efa67154ab34caf ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/zdata.c