mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
One of the intentions behind r267254 was that the global variable "sgrowsiz"
would be read once and cached in a local variable so that the resource limit check and map entry insertion would be guaranteed to use the same value. However, the value being passed to vm_map_insert() is still from "sgrowsiz" and not the local variable. Correct this oversight. Reviewed by: kib
This commit is contained in:
parent
0c934f7f89
commit
e1f92ccc73
1 changed files with 1 additions and 1 deletions
|
|
@ -3388,7 +3388,7 @@ vm_map_stack(vm_map_t map, vm_offset_t addrbos, vm_size_t max_ssize,
|
|||
rv = KERN_NO_SPACE;
|
||||
goto out;
|
||||
}
|
||||
rv = vm_map_stack_locked(map, addrbos, max_ssize, sgrowsiz, prot,
|
||||
rv = vm_map_stack_locked(map, addrbos, max_ssize, growsize, prot,
|
||||
max, cow);
|
||||
out:
|
||||
vm_map_unlock(map);
|
||||
|
|
|
|||
Loading…
Reference in a new issue