mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
f2fs: fix to avoid accessing invalid fio in f2fs_allocate_data_block()
[ Upstream commit25ae837e61] Callers may pass fio parameter with NULL value to f2fs_allocate_data_block(), so we should make sure accessing fio's field after fio's validation check. Fixes:f608c38c59("f2fs: clean up parameter of f2fs_allocate_data_block()") Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1fd6a06410
commit
b59194c7ca
1 changed files with 3 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue