diff options
| author | 2024-02-28 19:59:54 +0800 | |
|---|---|---|
| committer | 2024-03-04 09:51:58 -0800 | |
| commit | 36959d18c3cf09b3c12157c6950e18652067de77 (patch) | |
| tree | a7a9ec121fcf9fa00ec6f923a1569bdf4b371210 /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | f2fs: fix to reset fields for unloaded curseg (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 <zhiguo.niu@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
