summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2008-10-05 11:12:19 +0000
committermiod <miod@openbsd.org>2008-10-05 11:12:19 +0000
commit0375b5f45c1a4775006a20b5798515f98016de5e (patch)
treebcd8d387c1c2f74d924016c06881fc84105c3bd1 /sys/kern/kern_malloc.c
parentAdd missing argument to printf. (diff)
downloadwireguard-openbsd-0375b5f45c1a4775006a20b5798515f98016de5e.tar.xz
wireguard-openbsd-0375b5f45c1a4775006a20b5798515f98016de5e.zip
In malloc_page_free(), restore the correct wire_count value.
Diffstat (limited to 'sys/kern/kern_malloc.c')
-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);
}