Repository navigation
Commit 25ae837
f2fs: fix to avoid accessing invalid fio in f2fs_allocate_data_block()
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>1 parent a303b0a commit 25ae837
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3417 | 3417 | | |
3418 | 3418 | | |
3419 | 3419 | | |
3420 | | - | |
3421 | | - | |
3422 | | - | |
3423 | 3420 | | |
3424 | 3421 | | |
3425 | 3422 | | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
3426 | 3426 | | |
3427 | 3427 | | |
3428 | 3428 | | |
| |||
0 commit comments