Repository navigation
Commit b59194c
f2fs: fix to avoid accessing invalid fio in f2fs_allocate_data_block()
[ Upstream commit 25ae837 ]
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: f608c38 ("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>1 parent 1fd6a06 commit b59194c
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3407 | 3407 | | |
3408 | 3408 | | |
3409 | 3409 | | |
3410 | | - | |
3411 | | - | |
3412 | | - | |
3413 | 3410 | | |
3414 | 3411 | | |
3415 | 3412 | | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
3416 | 3416 | | |
3417 | 3417 | | |
3418 | 3418 | | |
| |||
0 commit comments