svn commit: r285967 - stable/10/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Tue Jul 28 17:12:42 UTC 2015
Author: kib
Date: Tue Jul 28 17:12:41 2015
New Revision: 285967
URL: https://svnweb.freebsd.org/changeset/base/285967
Log:
MFC r284956:
Do not calculate the stack's bottom address twice.
Modified:
stable/10/sys/kern/kern_exec.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/kern_exec.c
==============================================================================
--- stable/10/sys/kern/kern_exec.c Tue Jul 28 17:08:32 2015 (r285966)
+++ stable/10/sys/kern/kern_exec.c Tue Jul 28 17:12:41 2015 (r285967)
@@ -1116,7 +1116,7 @@ exec_new_vmspace(imgp, sv)
* process stack so we can check the stack rlimit.
*/
vmspace->vm_ssize = sgrowsiz >> PAGE_SHIFT;
- vmspace->vm_maxsaddr = (char *)sv->sv_usrstack - ssiz;
+ vmspace->vm_maxsaddr = (char *)stack_addr;
return (0);
}
More information about the svn-src-all
mailing list