From 745cd82947e8bccffc1777b49c892ac8c64a9d5f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 1 Apr 2002 20:38:37 +0000 Subject: Missing splx in suser() check. --- sys/dev/ic/if_wi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic') 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; } -- cgit v1.2.3