summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/linux/linux_machdep.c')
-rw-r--r--sys/i386/linux/linux_machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c
index f415406..198cae2 100644
--- a/sys/i386/linux/linux_machdep.c
+++ b/sys/i386/linux/linux_machdep.c
@@ -500,9 +500,10 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args)
* mmap'ed region, but some apps do not check
* mmap's return value.
*/
- mtx_assert(&Giant, MA_OWNED);
+ PROC_LOCK(p);
p->p_vmspace->vm_maxsaddr = (char *)USRSTACK -
- p->p_rlimit[RLIMIT_STACK].rlim_cur;
+ lim_cur(p, RLIMIT_STACK);
+ PROC_UNLOCK(p);
}
/* This gives us our maximum stack size */
OpenPOWER on IntegriCloud