summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-04-01 20:38:36 +0000
committermillert <millert@openbsd.org>2002-04-01 20:38:36 +0000
commitce7e61d610e65d82741bc11980b782e952d98c80 (patch)
treebce69526ff9bee38c74cee697d3b632e5a2bf228
parentchange return values back from EX_* to 0/1 (diff)
downloadwireguard-openbsd-ce7e61d610e65d82741bc11980b782e952d98c80.tar.xz
wireguard-openbsd-ce7e61d610e65d82741bc11980b782e952d98c80.zip
Missing splx in suser() check.
-rw-r--r--sys/dev/ic/if_wi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index 36cfb8c2a44..25cabc8ca39 100644
--- a/sys/dev/ic/if_wi.c
+++ b/sys/dev/ic/if_wi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi.c,v 1.36 2002/04/01 18:55:05 markus Exp $ */
+/* $OpenBSD: if_wi.c,v 1.37 2002/04/01 20:38:36 millert Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG;
#if !defined(lint) && !defined(__OpenBSD__)
static const char rcsid[] =
- "$OpenBSD: if_wi.c,v 1.36 2002/04/01 18:55:05 markus Exp $";
+ "$OpenBSD: if_wi.c,v 1.37 2002/04/01 20:38:36 millert Exp $";
#endif /* lint */
#ifdef foo
@@ -1206,8 +1206,10 @@ wi_ioctl(ifp, command, data)
case SIOCS80211NWKEY:
case SIOCS80211POWER:
error = suser(p->p_ucred, &p->p_acflag);
- if (error)
+ if (error) {
+ splx(s);
return (error);
+ }
default:
break;
}