From 0fabadf6e484c8347c3f275c0e8dc0670f4a0428 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 3 Jul 2013 19:21:56 +0000 Subject: Do not scribble to a page after uvm_pagefree()'ing it. --- sys/arch/vax/vax/pmap.c | 4 ++-- 1 file 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)); } } -- cgit v1.2.3