mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-30 00:23:24 +00:00
Change the return value of dup() for Vmo<Rights>
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e6b0fd8aa3
commit
770a123415
@ -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() {
|
||||
|
Reference in New Issue
Block a user