Change the return value of dup() for Vmo<Rights>

This commit is contained in:
LI Qing
2024-05-16 14:59:09 +08:00
committed by Tate, Hongliang Tian
parent e6b0fd8aa3
commit 770a123415
5 changed files with 13 additions and 16 deletions

View File

@ -325,7 +325,7 @@ fn init_segment_vmo(program_header: &ProgramHeader64, elf_file: &Dentry) -> Resu
start..end
};
debug_assert!(vmo_size >= (program_header.file_size as usize).align_up(PAGE_SIZE));
page_cache_vmo.new_cow_child(parent_range)?.alloc()?
page_cache_vmo.new_cow_child(parent_range).alloc()?
};
let anonymous_map_size: usize = if vmo_size > segment_vmo.size() {