diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-05-24 14:11:01 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-05-24 14:54:08 +0200 |
commit | 2a648479d659e37faa86e6a9c0214add000afe91 (patch) | |
tree | d04a41e98bdc35d5d2303b1599be7a714da43dc2 /vm | |
parent | 08dac1991732db78ce85af228c7a7ae3e7438b35 (diff) | |
download | gnumach-2a648479d659e37faa86e6a9c0214add000afe91.tar.gz gnumach-2a648479d659e37faa86e6a9c0214add000afe91.tar.bz2 gnumach-2a648479d659e37faa86e6a9c0214add000afe91.zip |
Revert "vm_map: Allow passing the name of a memory object"
This reverts commit af9f471b500bcd0c1023259c7577e074fe6d3ee5.
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm_user.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vm/vm_user.c b/vm/vm_user.c index 4f89f890..934e3e50 100644 --- a/vm/vm_user.c +++ b/vm/vm_user.c @@ -345,16 +345,14 @@ kern_return_t vm_map( object = VM_OBJECT_NULL; offset = 0; copy = FALSE; - } else if ((object = vm_object_lookup_name (memory_object)) == VM_OBJECT_NULL && - (object = vm_object_enter(memory_object, size, FALSE)) == VM_OBJECT_NULL) + } else if ((object = vm_object_enter(memory_object, size, FALSE)) + == VM_OBJECT_NULL) { ipc_port_t real_memobj; vm_prot_t prot; - result = memory_object_proxy_lookup (memory_object, &real_memobj, &prot); if (result != KERN_SUCCESS) - /* Really no luck */ return result; if (!copy) |