Correct an off-by-one error in vm_reserv_alloc_contig() that resulted in
the last reservation of a multi-reservation allocation not being initialized.
This commit is contained in:
parent
ba73774268
commit
476f7f2423
@ -457,7 +457,7 @@ vm_reserv_alloc_contig(vm_object_t object, vm_pindex_t pindex, u_long npages,
|
||||
m += VM_LEVEL_0_NPAGES;
|
||||
first += VM_LEVEL_0_NPAGES;
|
||||
allocpages -= VM_LEVEL_0_NPAGES;
|
||||
} while (allocpages > VM_LEVEL_0_NPAGES);
|
||||
} while (allocpages > 0);
|
||||
return (m_ret);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user