summaryrefslogtreecommitdiff
path: root/sys/dev/ic/an.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-06-19 00:12:42 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-06-19 00:12:42 +0000
commitc6db3aea09f76d82c044f4d46747bedc65dd0ba9 (patch)
tree1cb53a60edaac946274675a218e12971fa293972 /sys/dev/ic/an.c
parent9264bdfa8f8ac2ea5114086abb804018e87da5c1 (diff)
Insert missing splx(); me and roberto@ns2.freenix.org.
Hacking at USENIX 2000 :-)
Diffstat (limited to 'sys/dev/ic/an.c')
-rw-r--r--sys/dev/ic/an.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/an.c b/sys/dev/ic/an.c
index 926d754e8f5..e391141f1d4 100644
--- a/sys/dev/ic/an.c
+++ b/sys/dev/ic/an.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: an.c,v 1.5 2000/06/18 18:42:08 tholo Exp $ */
+/* $OpenBSD: an.c,v 1.6 2000/06/19 00:12:41 aaron Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -891,8 +891,10 @@ int an_ioctl(ifp, command, data)
sc = ifp->if_softc;
ifr = (struct ifreq *)data;
- if (sc->an_gone)
+ if (sc->an_gone) {
+ splx(s);
return(ENODEV);
+ }
if ((error = ether_ioctl(ifp, &sc->arpcom, command, data)) > 0) {
splx(s);