summaryrefslogtreecommitdiff
path: root/sys/arch/arm64
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2019-07-13 21:16:18 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2019-07-13 21:16:18 +0000
commit88720c5025823f5ebf9225898cad500c4ad3f4d9 (patch)
tree48b7cadd0af06b8ddd059de4640697e1413725d0 /sys/arch/arm64
parent824a6e435460fa40b33b0c86636eab3dd8ec5148 (diff)
pmap_page_protect() should not unmap pages after making them readonly.
ok kettenis@ patrick@
Diffstat (limited to 'sys/arch/arm64')
-rw-r--r--sys/arch/arm64/arm64/pmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c
index a3d41083ffd..db6fa21fdbf 100644
--- a/sys/arch/arm64/arm64/pmap.c
+++ b/sys/arch/arm64/arm64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.63 2019/06/01 11:45:01 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.64 2019/07/13 21:16:17 drahn Exp $ */
/*
* Copyright (c) 2008-2009,2014-2016 Dale Rahn <drahn@dalerahn.com>
*
@@ -1497,6 +1497,7 @@ pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
pmap_page_ro(pted->pted_pmap, pted->pted_va, prot);
}
mtx_leave(&pg->mdpage.pv_mtx);
+ return;
}
mtx_enter(&pg->mdpage.pv_mtx);