diff options
author | Ariane van der Steldt <ariane@cvs.openbsd.org> | 2012-04-12 14:57:37 +0000 |
---|---|---|
committer | Ariane van der Steldt <ariane@cvs.openbsd.org> | 2012-04-12 14:57:37 +0000 |
commit | 22c2bfb88e8c394dc20c81832688dd203d02dd8b (patch) | |
tree | d8038f6e363521db6c39ba69a5b2f1cf715d5b74 /sys | |
parent | 3219f9f3989238e48d2c6eeb05a2431877fe5d8d (diff) |
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')
-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: |