X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..fa4905b191e0d16b0fffd53bd565eca71d01fae0:/osfmk/vm/vm_shared_memory_server.c diff --git a/osfmk/vm/vm_shared_memory_server.c b/osfmk/vm/vm_shared_memory_server.c index 626fb5fb9..b1fc23972 100644 --- a/osfmk/vm/vm_shared_memory_server.c +++ b/osfmk/vm/vm_shared_memory_server.c @@ -233,10 +233,11 @@ copyin_shared_file( vm_offset_t *base_address, int map_cnt, sf_mapping_t *mappings, - vm_object_t file_object, + memory_object_control_t file_control, shared_region_task_mappings_t sm_info, int *flags) { + vm_object_t file_object; vm_map_entry_t entry; shared_file_info_t *shared_file_header; load_struct_t *file_entry; @@ -301,7 +302,7 @@ copyin_shared_file( /* Find the entry in the map associated with the current mapping */ /* of the file object */ - + file_object = memory_object_control_to_vm_object(file_control); if(vm_map_lookup_entry(current_map(), mapped_file, &entry)) { vm_object_t mapped_object; if(entry->is_sub_map) {