summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-08-28 22:27:48 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-08-28 22:27:48 +0000
commit9a7d694858272bb1bbe3bd9c47ced73193cb3123 (patch)
tree3ad78bc4adc95c895ea9fe5b6ebdfb5c283a86f5
parentc2689998539f2fda2e788b00a1ae075cef0ba7f7 (diff)
Fix an uninitialized value leading to bogus KASSERT in uvm_pmr_use_inc().
-rw-r--r--sys/uvm/uvm_pmemrange.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/uvm/uvm_pmemrange.c b/sys/uvm/uvm_pmemrange.c
index f0cc12237a8..7679fe58b33 100644
--- a/sys/uvm/uvm_pmemrange.c
+++ b/sys/uvm/uvm_pmemrange.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_pmemrange.c,v 1.17 2010/07/01 21:40:32 oga Exp $ */
+/* $OpenBSD: uvm_pmemrange.c,v 1.18 2010/08/28 22:27:47 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Ariane van der Steldt <ariane@stack.nl>
@@ -1410,6 +1410,7 @@ uvm_pmr_use_inc(paddr_t low, paddr_t high)
uvm_pmr_split(low);
uvm_pmr_split(high);
+ sz = 0;
uvm_lock_fpageq();
/* Increase use count on segments in range. */
RB_FOREACH(pmr, uvm_pmemrange_addr, &uvm.pmr_control.addr) {