diff options
| author | Alan Cox <alc@FreeBSD.org> | 2003-12-26 21:54:45 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2003-12-26 21:54:45 +0000 |
| commit | 75898105c0f4ebca97af828ee3b66814d337708f (patch) | |
| tree | b38a30342221d2422cfb71a0198183e22bb92028 /sys/vm/vm_map.c | |
| parent | d910ed771db5f2be87a48d1b2c04aae80416b92b (diff) | |
Notes
Diffstat (limited to 'sys/vm/vm_map.c')
| -rw-r--r-- | sys/vm/vm_map.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 671cbacb7e3b..1572cbc9d527 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2677,8 +2677,7 @@ Retry: } /* If we would blow our VMEM resource limit, no go */ - if (map->size + grow_amount > - curthread->td_proc->p_rlimit[RLIMIT_VMEM].rlim_cur) { + if (map->size + grow_amount > p->p_rlimit[RLIMIT_VMEM].rlim_cur) { vm_map_unlock_read(map); return (KERN_NO_SPACE); } |
