aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-06-30 15:22:47 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2015-06-30 15:22:47 +0000
commit6ef120027fbb5e7798fcb4f2cfdcf2e65bd8f1ba (patch)
tree3869bb6583d216f894074ed65931690ab7253250 /sys/kern/kern_exec.c
parent2a52334e0b2da1ba17a38b1595362a792610dc28 (diff)
downloadsrc-6ef120027fbb5e7798fcb4f2cfdcf2e65bd8f1ba.tar.gz
src-6ef120027fbb5e7798fcb4f2cfdcf2e65bd8f1ba.zip
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 375e64459c4c..859b2e342825 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1096,7 +1096,7 @@ exec_new_vmspace(imgp, sv)
* are still used to enforce the stack rlimit on the process stack.
*/
vmspace->vm_ssize = sgrowsiz >> PAGE_SHIFT;
- vmspace->vm_maxsaddr = (char *)sv->sv_usrstack - ssiz;
+ vmspace->vm_maxsaddr = (char *)stack_addr;
return (0);
}