pmap_page_protect() should not unmap pages after making them readonly.
authorjca <jca@openbsd.org>
Sun, 3 Sep 2023 00:03:30 +0000 (00:03 +0000)
committerjca <jca@openbsd.org>
Sun, 3 Sep 2023 00:03:30 +0000 (00:03 +0000)
commitd4bf169dfd3094849c8bc7aa1f41454c16603b77
treecec739e71f595ba28e12d162eb1c29b7515501cc
parent903d1285474e6a1a8bfdc71e5c97f8037e5d801a
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@
sys/arch/riscv64/riscv64/pmap.c