diff options
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 5c93a84..8c5a502 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2573,12 +2573,10 @@ vm_map_growstack(struct proc *p, vm_offset_t addr) rlim_t stacklim, vmemlim; int is_procstack, rv; - GIANT_REQUIRED; - Retry: PROC_LOCK(p); stacklim = lim_cur(p, RLIMIT_STACK); - vmemlim = lim_cur(curthread->td_proc, RLIMIT_VMEM); + vmemlim = lim_cur(p, RLIMIT_VMEM); PROC_UNLOCK(p); vm_map_lock_read(map); |