summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2013-03-12 20:47:17 +0000
committerBob Beck <beck@cvs.openbsd.org>2013-03-12 20:47:17 +0000
commit6739eed67217d17d38154211cc4a070ebf4ada85 (patch)
treed60b079146cb82014ff3f5d7a111efa7a21bc602 /sys
parent6912624cc4a2b9c4391246a9e6bdfa47f1d2bc7e (diff)
Fix horrible typo of mine checking for WAITOK flags, found by sthen.
This fix actually by mikeb@, this needs thorough testing to verify it doesn't bring up other issues in what it hid. ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_page.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c
index 9793930afcc..41ec77d60a6 100644
--- a/sys/uvm/uvm_page.c
+++ b/sys/uvm/uvm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.c,v 1.118 2013/03/06 22:26:15 beck Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.119 2013/03/12 20:47:16 beck Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
@@ -828,7 +828,7 @@ uvm_pglistalloc(psize_t size, paddr_t low, paddr_t high, paddr_t alignment,
if ((uvmexp.free <= uvmexp.reserve_pagedaemon + size &&
!((curproc == uvm.pagedaemon_proc) ||
(curproc == syncerproc)))) {
- if (UVM_PLA_WAITOK) {
+ if (flags & UVM_PLA_WAITOK) {
uvm_wait("uvm_pglistalloc");
goto again;
}