diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2023-09-03 00:03:31 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2023-09-03 00:03:31 +0000 |
commit | 63d54e0c9062f0eb8dc1e6302357590d456bdf57 (patch) | |
tree | f66e6c8256ff3117300ff26544afd386177697d4 /sys | |
parent | 05a8318f217da7c79ecfc7bccb3e9049e5f87e25 (diff) |
pmap_page_protect() should not unmap pages after making them readonly.
This brings riscv64/pmap.c in line with arm64/pmap.c, original fix by
drahn@
ok miod@ kettenis@ mlarkin@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/riscv64/riscv64/pmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/riscv64/riscv64/pmap.c b/sys/arch/riscv64/riscv64/pmap.c index 42e553ec2ce..069dfac8cf1 100644 --- a/sys/arch/riscv64/riscv64/pmap.c +++ b/sys/arch/riscv64/riscv64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.30 2023/04/13 15:23:22 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.31 2023/09/03 00:03:30 jca Exp $ */ /* * Copyright (c) 2019-2020 Brian Bamsch <bbamsch@google.com> @@ -1523,6 +1523,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); |