mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 01:03:42 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96044
|
@ -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