diff options
author | alc <alc@FreeBSD.org> | 2012-07-15 21:46:19 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2012-07-15 21:46:19 +0000 |
commit | 8f708ce43310175fbbc15562068838d620a857e2 (patch) | |
tree | 5ad639aab596e1dbdcd1b66c878a665b9328a2aa /sys/vm/vm_reserv.c | |
parent | c0067691830e39c9b829d3e5d06f2333df2ce417 (diff) | |
download | FreeBSD-src-8f708ce43310175fbbc15562068838d620a857e2.zip FreeBSD-src-8f708ce43310175fbbc15562068838d620a857e2.tar.gz |
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.
Diffstat (limited to 'sys/vm/vm_reserv.c')
-rw-r--r-- | sys/vm/vm_reserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_reserv.c b/sys/vm/vm_reserv.c index 121e23a..e5ac1a5 100644 --- a/sys/vm/vm_reserv.c +++ b/sys/vm/vm_reserv.c @@ -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); /* |