summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_page.c
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2009-06-02 19:49:09 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2009-06-02 19:49:09 +0000
commitdec6db6bc1834fac20d3841f4ea0085c8c568793 (patch)
treed8dc97d331985b893c7858f80cec3ae1b0ed8d13 /sys/uvm/uvm_page.c
parent56ffc83051f12ae580ebc93caf6ae3e9c5bbe186 (diff)
Clear PQ_ENCRYPT flag on uvm_pagefree, because free pages are by definition
not encrypted.
Diffstat (limited to 'sys/uvm/uvm_page.c')
-rw-r--r--sys/uvm/uvm_page.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c
index 1d88b3b5209..47e7c91582f 100644
--- a/sys/uvm/uvm_page.c
+++ b/sys/uvm/uvm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.c,v 1.82 2009/06/01 19:54:02 oga Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.83 2009/06/02 19:49:08 ariane Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
@@ -1110,8 +1110,8 @@ uvm_pagefree(struct vm_page *pg)
/*
* Clean page state bits.
*/
- atomic_clearbits_int(&pg->pg_flags,
- PG_ZERO|PG_FAKE|PG_BUSY|PG_RELEASED|PG_CLEAN|PG_CLEANCHK);
+ atomic_clearbits_int(&pg->pg_flags, PG_ZERO|PG_FAKE|PG_BUSY|
+ PG_RELEASED|PG_CLEAN|PG_CLEANCHK|PQ_ENCRYPT);
/*
* Pmap flag cleaning.
* XXX: Shouldn't pmap do this?