Author: alc
Date: Sun Jul 15 21:46:19 2012
New Revision: 238510
URL: http://svn.freebsd.org/changeset/base/238510
Log:
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.
Modified:
head/sys/vm/vm_reserv.c
Modified: head/sys/vm/vm_reserv.c
==============================================================================
--- head/sys/vm/vm_reserv.c Sun Jul 15 21:20:31 2012 (r238509)
+++ head/sys/vm/vm_reserv.c Sun Jul 15 21:46:19 2012 (r238510)
@@ -457,7 +457,7 @@ vm_reserv_alloc_contig(vm_object_t objec
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);
/*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"