diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-04-01 20:38:37 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-04-01 20:38:37 +0000 |
commit | 745cd82947e8bccffc1777b49c892ac8c64a9d5f (patch) | |
tree | 3070445d358f03f4582a4164b2646c6188f9b1cc /sys/dev/ic | |
parent | 8a6192eb42442a8fc5773b2eca52336fc03ea71a (diff) |
Missing splx in suser() check.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/if_wi.c | 8 |
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; } |