summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authorariane <ariane@openbsd.org>2012-04-12 14:57:36 +0000
committerariane <ariane@openbsd.org>2012-04-12 14:57:36 +0000
commit5c12b987294c201f7f68e50da4251ac837ce96b2 (patch)
treefb3dd4b07467956365a2a9d89474bdf7c7d62d87 /sys/kern/subr_hibernate.c
parentIf the "main" thread exits it stays around but unlinks itself from the (diff)
downloadwireguard-openbsd-5c12b987294c201f7f68e50da4251ac837ce96b2.tar.xz
wireguard-openbsd-5c12b987294c201f7f68e50da4251ac837ce96b2.zip
hibernate: fix lock/unlock mismatch
Unlock missed an 'f', which caused it to unlock the in-use pageqs, rather than the free pageqs as it was supposed to.
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-rw-r--r--sys/kern/subr_hibernate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index 45ed48f1867..63e3dbd9d87 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.33 2012/03/26 16:15:42 mlarkin Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.34 2012/04/12 14:57:36 ariane Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -347,7 +347,7 @@ uvm_pmr_alloc_pig(paddr_t *addr, psize_t sz)
/*
* Allocation failure.
*/
- uvm_unlock_pageq();
+ uvm_unlock_fpageq();
return ENOMEM;
found: