summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2011-06-23 21:55:58 +0000
committeroga <oga@openbsd.org>2011-06-23 21:55:58 +0000
commit50623721d6e4cce1c56c9725b24519594e509ab3 (patch)
tree5cfb1530acc638329b465b5725a5ff8783e11a0b
parentDon't bother checking for an empty queue before calling uvm_pglistfree. (diff)
downloadwireguard-openbsd-50623721d6e4cce1c56c9725b24519594e509ab3.tar.xz
wireguard-openbsd-50623721d6e4cce1c56c9725b24519594e509ab3.zip
Check for the correct flag when checking to see if the page is part of an aobj.
This is no function change since aobjs never actually hit this path. (also it is my bug from a while ago). ok ariane@
-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 bbde5286a1c..2da2511c569 100644
--- a/sys/uvm/uvm_page.c
+++ b/sys/uvm/uvm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.c,v 1.109 2011/06/23 21:50:26 oga Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.110 2011/06/23 21:55:58 oga Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
@@ -1152,7 +1152,7 @@ uvm_page_unbusy(struct vm_page **pgs, int npgs)
uvm_lock_pageq();
pmap_page_protect(pg, VM_PROT_NONE);
/* XXX won't happen right now */
- if (pg->pg_flags & PQ_ANON)
+ if (pg->pg_flags & PQ_AOBJ)
uao_dropswap(uobj,
pg->offset >> PAGE_SHIFT);
uvm_pagefree(pg);