mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use pages instead of uz_maxpages, which has not been initialized yet, when
creating the vm_object. This was broken after the code was rearranged to grab giant itself. Spotted by: alc
This commit is contained in:
parent
c1d57c383a
commit
c7173f58fa
1 changed files with 2 additions and 2 deletions
|
|
@ -1873,10 +1873,10 @@ uma_zone_set_obj(uma_zone_t zone, struct vm_object *obj, int count)
|
|||
|
||||
if (obj == NULL)
|
||||
obj = vm_object_allocate(OBJT_DEFAULT,
|
||||
zone->uz_maxpages);
|
||||
pages);
|
||||
else
|
||||
_vm_object_allocate(OBJT_DEFAULT,
|
||||
zone->uz_maxpages, obj);
|
||||
pages, obj);
|
||||
|
||||
ZONE_LOCK(zone);
|
||||
zone->uz_kva = kva;
|
||||
|
|
|
|||
Loading…
Reference in a new issue