summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-07-03 19:21:55 +0000
committermiod <miod@openbsd.org>2013-07-03 19:21:55 +0000
commitdf4c3990d5a39e1c998aeb85cdf3e77766f0ce93 (patch)
tree1b8f9ade90863163d250cb28b550f1b9990f655c
parentfix: cast void * to char *, fix format args for (u)int64_t, (diff)
downloadwireguard-openbsd-df4c3990d5a39e1c998aeb85cdf3e77766f0ce93.tar.xz
wireguard-openbsd-df4c3990d5a39e1c998aeb85cdf3e77766f0ce93.zip
Do not scribble to a page after uvm_pagefree()'ing it.
-rw-r--r--sys/arch/vax/vax/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c
index 31dd0ebaa17..d6bc1bd89cb 100644
--- a/sys/arch/vax/vax/pmap.c
+++ b/sys/arch/vax/vax/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.57 2013/06/29 13:00:35 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.58 2013/07/03 19:21:55 miod Exp $ */
/* $NetBSD: pmap.c,v 1.74 1999/11/13 21:32:25 matt Exp $ */
/*
* Copyright (c) 1994, 1998, 1999 Ludd, University of Lule}, Sweden.
@@ -350,8 +350,8 @@ pmap_decpteref(pmap, pte)
#endif
if (pmap->pm_refcnt[index] == 0) {
paddr = (*kvtopte(pte) & PG_FRAME) << VAX_PGSHIFT;
- uvm_pagefree(PHYS_TO_VM_PAGE(paddr));
bzero(kvtopte(pte), sizeof(pt_entry_t) * LTOHPN);
+ uvm_pagefree(PHYS_TO_VM_PAGE(paddr));
}
}