summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_pool.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2014-08-12 01:31:43 +0000
committerdlg <dlg@openbsd.org>2014-08-12 01:31:43 +0000
commit50c0ea53d8ce55a08a9c60ec96cac3d00e3af0a8 (patch)
tree54dfa1baa2ccd5c9a045a98eedc4bc5cf0e61e2f /sys/kern/subr_pool.c
parenti accidentally removed the check for whether the requested pool in (diff)
downloadwireguard-openbsd-50c0ea53d8ce55a08a9c60ec96cac3d00e3af0a8.tar.xz
wireguard-openbsd-50c0ea53d8ce55a08a9c60ec96cac3d00e3af0a8.zip
sigh. when returning ENOENT in the sysctl path, unlock on the way out.
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r--sys/kern/subr_pool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index e3fb051fbda..567f5815813 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.144 2014/08/12 01:25:21 dlg Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.145 2014/08/12 01:31:43 dlg Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -1485,9 +1485,9 @@ sysctl_dopool(int *name, u_int namelen, char *oldp, size_t *oldlenp)
rv = sysctl_rdstruct(oldp, oldlenp, NULL, &pi, sizeof(pi));
}
+done:
splx(s);
-done:
return (rv);
}