summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorZhiguo Niu <zhiguo.niu@unisoc.com>2024-02-28 19:59:54 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-03-04 09:51:58 -0800
commit36959d18c3cf09b3c12157c6950e18652067de77 (patch)
treea7a9ec121fcf9fa00ec6f923a1569bdf4b371210 /rust/alloc/collections/git@git.tavy.me:linux.git
parent42a80aacb76bed85f453b10f662877ed60d37164 (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/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions