diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-07-03 19:21:56 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-07-03 19:21:56 +0000 |
commit | 0fabadf6e484c8347c3f275c0e8dc0670f4a0428 (patch) | |
tree | 6346209c91d3676e56b0f499926c804fc828b11f | |
parent | 1216a674afebf0b4b5d92e389f804a756be2e912 (diff) |
Do not scribble to a page after uvm_pagefree()'ing it.
-rw-r--r-- | sys/arch/vax/vax/pmap.c | 4 |
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)); } } |