summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpech <mpech@openbsd.org>2003-05-23 16:33:35 +0000
committermpech <mpech@openbsd.org>2003-05-23 16:33:35 +0000
commit3407500950546b608ed4006e7c43823e6fb151ac (patch)
tree70b45de583c7dd218f60f22b15be66876f07890f
parent- typos (diff)
downloadwireguard-openbsd-3407500950546b608ed4006e7c43823e6fb151ac.tar.xz
wireguard-openbsd-3407500950546b608ed4006e7c43823e6fb151ac.zip
Do all unlocks before exit from pmap_enter().
deraadt@, drahn@ OK
-rw-r--r--sys/arch/i386/i386/pmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index a6f02c0b7b0..56301ed68c8 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.72 2003/05/13 03:49:04 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.73 2003/05/23 16:33:35 mpech Exp $ */
/* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */
/*
@@ -3038,7 +3038,8 @@ pmap_enter(pmap, va, pa, prot, flags)
ptp = pmap_get_ptp(pmap, pdei(va), FALSE);
if (ptp == NULL) {
if (flags & PMAP_CANFAIL) {
- return (KERN_RESOURCE_SHORTAGE);
+ error = KERN_RESOURCE_SHORTAGE;
+ goto out;
}
panic("pmap_enter: get ptp failed");
}