diff options
author | 2012-04-12 14:57:36 +0000 | |
---|---|---|
committer | 2012-04-12 14:57:36 +0000 | |
commit | 5c12b987294c201f7f68e50da4251ac837ce96b2 (patch) | |
tree | fb3dd4b07467956365a2a9d89474bdf7c7d62d87 /sys/kern/subr_hibernate.c | |
parent | If the "main" thread exits it stays around but unlinks itself from the (diff) | |
download | wireguard-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.c | 4 |
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: |