aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorGao Xiang <[email protected]>2024-06-30 02:57:43 +0800
committerGao Xiang <[email protected]>2024-06-30 10:54:28 +0800
commit9b32b063be1001e322c5f6e01f2a649636947851 (patch)
treed3ec220aa18aef77304dba31683ab0b950de5021 /scripts/generate_rust_analyzer.py
parentcc69a681b2573e8865e29758f1a5b284328efb2d (diff)
erofs: ensure m_llen is reset to 0 if metadata is invalid
Sometimes, the on-disk metadata might be invalid due to user interrupts, storage failures, or other unknown causes. In that case, z_erofs_map_blocks_iter() may still return a valid m_llen while other fields remain invalid (e.g., m_plen can be 0). Due to the return value of z_erofs_scan_folio() in some path will be ignored on purpose, the following z_erofs_scan_folio() could then use the invalid value by accident. Let's reset m_llen to 0 to prevent this. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions