diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-08-28 22:27:48 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-08-28 22:27:48 +0000 |
commit | 9a7d694858272bb1bbe3bd9c47ced73193cb3123 (patch) | |
tree | 3ad78bc4adc95c895ea9fe5b6ebdfb5c283a86f5 | |
parent | c2689998539f2fda2e788b00a1ae075cef0ba7f7 (diff) |
Fix an uninitialized value leading to bogus KASSERT in uvm_pmr_use_inc().
-rw-r--r-- | sys/uvm/uvm_pmemrange.c | 3 |
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) { |