mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
fsck.f2fs: drop extent_info to avoid potential wrong access
This patch avoids wrong extent information modified by fixing block addresses. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
7ac070116b
commit
ca1436eeef
@ -722,6 +722,8 @@ skip_blkcnt_fix:
|
||||
}
|
||||
}
|
||||
if (need_fix) {
|
||||
/* drop extent information to avoid potential wrong access */
|
||||
node_blk->i.i_ext.len = 0;
|
||||
ret = dev_write_block(node_blk, ni->blk_addr);
|
||||
ASSERT(ret >= 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user