diff options
Diffstat (limited to 'sys/vm/vm_map.c')
| -rw-r--r-- | sys/vm/vm_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index e7a489812366..30ff0c7519b7 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2396,10 +2396,10 @@ vm_map_stack (vm_map_t map, vm_offset_t addrbos, vm_size_t max_ssize, if (VM_MIN_ADDRESS > 0 && addrbos < VM_MIN_ADDRESS) return (KERN_NO_SPACE); - if (max_ssize < SGROWSIZ) + if (max_ssize < sgrowsiz) init_ssize = max_ssize; else - init_ssize = SGROWSIZ; + init_ssize = sgrowsiz; vm_map_lock(map); @@ -2542,7 +2542,7 @@ Retry: } /* Round up the grow amount modulo SGROWSIZ */ - grow_amount = roundup (grow_amount, SGROWSIZ); + grow_amount = roundup (grow_amount, sgrowsiz); if (grow_amount > stack_entry->avail_ssize) { grow_amount = stack_entry->avail_ssize; } |
