f2fs: fix to avoid accessing invalid fio in f2fs_allocate_data_block()
stable inclusion from stable-5.10.38 commit b59194c7ca29cbfa29426aadc07ca043437178bc bugzilla: 51875 CVE: NA -------------------------------- [ Upstream commit 25ae837e ] 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: f608c38c ("f2fs: clean up parameter of f2fs_allocate_data_block()") Signed-off-by: NChao Yu <yuchao0@huawei.com> Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录