diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-19 00:12:42 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-19 00:12:42 +0000 |
commit | c6db3aea09f76d82c044f4d46747bedc65dd0ba9 (patch) | |
tree | 1cb53a60edaac946274675a218e12971fa293972 /sys/dev/pcmcia | |
parent | 9264bdfa8f8ac2ea5114086abb804018e87da5c1 (diff) |
Insert missing splx(); me and roberto@ns2.freenix.org.
Hacking at USENIX 2000 :-)
Diffstat (limited to 'sys/dev/pcmcia')
-rw-r--r-- | sys/dev/pcmcia/if_wi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/if_wi.c b/sys/dev/pcmcia/if_wi.c index 91c064be100..0c5dbf925ee 100644 --- a/sys/dev/pcmcia/if_wi.c +++ b/sys/dev/pcmcia/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.12 2000/06/18 04:02:11 aaron Exp $ */ +/* $OpenBSD: if_wi.c,v 1.13 2000/06/19 00:12:41 aaron Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -135,7 +135,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.12 2000/06/18 04:02:11 aaron Exp $"; + "$OpenBSD: if_wi.c,v 1.13 2000/06/19 00:12:41 aaron Exp $"; #endif /* lint */ #ifdef foo @@ -1040,8 +1040,10 @@ STATIC int wi_ioctl(ifp, command, data) sc = ifp->if_softc; ifr = (struct ifreq *)data; - if (sc->wi_gone) + if (sc->wi_gone) { + splx(s); return(ENODEV); + } DPRINTF (WID_IOCTL, ("wi_ioctl: command %lu data %p", command, data)); |