summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-10-05 11:12:20 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-10-05 11:12:20 +0000
commiteb2ec4dcae23313cae864a55a7371081e216a8e5 (patch)
tree662db5f54bddfe9c836d1e0118d128b5a214ba8d /sys/kern
parente7e54aa2cb67850ec5f0a16b775f5cc00dafefd6 (diff)
In malloc_page_free(), restore the correct wire_count value.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index fae3a643117..bd30a1b8611 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.75 2008/09/29 12:34:18 art Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.76 2008/10/05 11:12:19 miod Exp $ */
/*
* Copyright (c) 2008 Michael Shalayeff
@@ -164,7 +164,7 @@ malloc_page_free(struct pool *pp, void *v)
pg = PHYS_TO_VM_PAGE(pa);
if (pg == NULL)
panic("malloc_page_free: no page");
- pg->wire_count = 1;
+ pg->wire_count = 0;
uvm_km_putpage(v);
}