summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2015-11-14 06:15:37 +0000
committermlarkin <mlarkin@openbsd.org>2015-11-14 06:15:37 +0000
commit9b03fbb153a59c36c1d38e39d016e5d122fc086a (patch)
treec3048036d53df16ec8f74b4732c625b3ca8c3239
parentpledge "stdio inet sendfd" before entering main loop in network speaking (diff)
downloadwireguard-openbsd-9b03fbb153a59c36c1d38e39d016e5d122fc086a.tar.xz
wireguard-openbsd-9b03fbb153a59c36c1d38e39d016e5d122fc086a.zip
Fix a missing unlock.
From Stefan Kempf sn.kempf at t-online.de
-rw-r--r--sys/arch/amd64/amd64/vmm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c
index df72910cfdb..20200883c5e 100644
--- a/sys/arch/amd64/amd64/vmm.c
+++ b/sys/arch/amd64/amd64/vmm.c
@@ -375,6 +375,7 @@ vm_readpage(struct vm_readpage_params *vrp)
/* Find the phys page where this guest page exists in real memory */
if (!pmap_extract(vm->vm_map->pmap, vr_page, &host_pa)) {
+ rw_exit_read(&vmm_softc->vm_lock);
return (EFAULT);
}