diff options
| author | 2019-11-05 08:18:47 +0000 | |
|---|---|---|
| committer | 2019-11-05 08:18:47 +0000 | |
| commit | 782069b16bde153d645fb4952ffca97be40e7f30 (patch) | |
| tree | b194ba301b0a252a80848fe201691c493a860bcc /sys/kern/kern_exec.c | |
| parent | Give some END()s to assembly symbols. (diff) | |
| download | wireguard-openbsd-782069b16bde153d645fb4952ffca97be40e7f30.tar.xz wireguard-openbsd-782069b16bde153d645fb4952ffca97be40e7f30.zip | |
Kill uvm_deallocate(9) and use uvm_unmap() directly.
ok kettenis@, semarie@, deraadt@
Diffstat (limited to 'sys/kern/kern_exec.c')
| -rw-r--r-- | sys/kern/kern_exec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 9233cbcf5cf..b71c8a9843c 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.208 2019/08/02 02:17:35 cheloha Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.209 2019/11/05 08:18:47 mpi Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -749,8 +749,7 @@ exec_abort: * get rid of the (new) address space we have created, if any, get rid * of our namei data and vnode, and exit noting failure */ - uvm_deallocate(&vm->vm_map, VM_MIN_ADDRESS, - VM_MAXUSER_ADDRESS - VM_MIN_ADDRESS); + uvm_unmap(&vm->vm_map, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS); if (pack.ep_interp != NULL) pool_put(&namei_pool, pack.ep_interp); if (pack.ep_emul_arg != NULL) |
