diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2013-03-12 20:47:17 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2013-03-12 20:47:17 +0000 |
commit | 6739eed67217d17d38154211cc4a070ebf4ada85 (patch) | |
tree | d60b079146cb82014ff3f5d7a111efa7a21bc602 /sys/uvm | |
parent | 6912624cc4a2b9c4391246a9e6bdfa47f1d2bc7e (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/uvm')
-rw-r--r-- | sys/uvm/uvm_page.c | 4 |
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; } |