mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
f2fs: fix to avoid overflow while left shift operation
[ Upstream commit0fe1c6bec5] Should cast type of folio->index from pgoff_t to loff_t to avoid overflow while left shift operation. Fixes:3265d3db1f("f2fs: support partial truncation on compressed inode") Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> [ Modification: Using rpages[i]->index instead of folio->index due to it was changed since commit:1cda5bc0b2fe ("f2fs: Use a folio in f2fs_truncate_partial_cluster()") on 6.14 ] Signed-off-by: Rajani Kantha <681739313@139.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d71b98f253
commit
0e75a098b0
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue