summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-10-22 02:09:15 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-10-22 02:09:15 +0000
commit6c07a3d0cdbd3cf6c730c4dc4111504661189b9a (patch)
tree6347cf0df32213de10179411fb19983e991a3484 /sys/kern/kern_exec.c
parent9cffe10410c0a5e38c0b4fdc1d924de8d2e1cf24 (diff)
Delete dead copy of pr->ps_vmspace; uvmspace_exec() can change it anyway
ok kettenis@ jsing@
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 6eb928204f0..6c3c6a5c89c 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.183 2016/09/03 14:28:24 jca Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.184 2016/10/22 02:09:14 guenther Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -254,7 +254,7 @@ sys_execve(struct proc *p, void *v, register_t *retval)
#endif
char *stack;
struct ps_strings arginfo;
- struct vmspace *vm = pr->ps_vmspace;
+ struct vmspace *vm;
char **tmpfap;
extern struct emul emul_native;
struct vnode *otvp;
@@ -421,7 +421,7 @@ sys_execve(struct proc *p, void *v, register_t *retval)
/*
* Prepare vmspace for remapping. Note that uvmspace_exec can replace
- * pr_vmspace!
+ * ps_vmspace!
*/
uvmspace_exec(p, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS);