diff options
| author | Zhiguo Niu <[email protected]> | 2024-02-28 19:59:54 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <[email protected]> | 2024-03-04 09:51:58 -0800 |
| commit | 36959d18c3cf09b3c12157c6950e18652067de77 (patch) | |
| tree | a7a9ec121fcf9fa00ec6f923a1569bdf4b371210 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | 42a80aacb76bed85f453b10f662877ed60d37164 (diff) | |
f2fs: fix to do sanity check in update_sit_entry
If GET_SEGNO return NULL_SEGNO for some unecpected case,
update_sit_entry will access invalid memory address,
cause system crash. It is better to do sanity check about
GET_SEGNO just like update_segment_mtime & locate_dirty_segment.
Also remove some redundant judgment code.
Signed-off-by: Zhiguo Niu <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions