Ensure that "domain" is initialized when vm_ndomains == 1.
Reported by: alc Approved by: re (gjb)
This commit is contained in:
parent
a0660700ad
commit
9d6288c080
@ -505,8 +505,10 @@ kmem_back(vm_object_t object, vm_offset_t addr, vm_size_t size, int flags)
|
||||
next = roundup2(addr + 1, KVA_QUANTUM);
|
||||
if (next > end || next < start)
|
||||
next = end;
|
||||
} else
|
||||
} else {
|
||||
domain = 0;
|
||||
next = end;
|
||||
}
|
||||
rv = kmem_back_domain(domain, object, addr, next - addr, flags);
|
||||
if (rv != KERN_SUCCESS) {
|
||||
kmem_unback(object, start, addr - start);
|
||||
|
Loading…
Reference in New Issue
Block a user