svn commit: r284956 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Tue Jun 30 15:22:48 UTC 2015
Author: kib
Date: Tue Jun 30 15:22:47 2015
New Revision: 284956
URL: https://svnweb.freebsd.org/changeset/base/284956
Log:
Do not calculate the stack's bottom address twice.
Submitted by: Olivц╘r Pintц╘r
Review: https://reviews.freebsd.org/D2953
MFC after: 1 week
Modified:
head/sys/kern/kern_exec.c
Modified: head/sys/kern/kern_exec.c
==============================================================================
--- head/sys/kern/kern_exec.c Tue Jun 30 15:21:18 2015 (r284955)
+++ head/sys/kern/kern_exec.c Tue Jun 30 15:22:47 2015 (r284956)
@@ -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);
}
More information about the svn-src-head
mailing list