diff options
author | 2010-08-28 22:27:47 +0000 | |
---|---|---|
committer | 2010-08-28 22:27:47 +0000 | |
commit | c37416d69cb1c911616380bcfe04054ca5a59e0b (patch) | |
tree | fc6c9f16572a22bde338e97b0e26e5b12e0b65a7 /sys/uvm/uvm_pmemrange.c | |
parent | some WSDISPLAYIO_* -> WSDISPLAY_* fixes and a grammar tweak; (diff) | |
download | wireguard-openbsd-c37416d69cb1c911616380bcfe04054ca5a59e0b.tar.xz wireguard-openbsd-c37416d69cb1c911616380bcfe04054ca5a59e0b.zip |
Fix an uninitialized value leading to bogus KASSERT in uvm_pmr_use_inc().
Diffstat (limited to 'sys/uvm/uvm_pmemrange.c')
-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) { |