summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_reserv.c2
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);
/*
OpenPOWER on IntegriCloud