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:
Alan Cox 2012-07-15 21:46:19 +00:00
parent ba73774268
commit 476f7f2423
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238510

View File

@ -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);
/*