summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ep/if_ep.c7
-rw-r--r--sys/i386/isa/if_ep.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index 3b677d6..5e249de 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -38,7 +38,7 @@
*/
/*
- * $Id: if_ep.c,v 1.27 1995/05/27 04:40:57 davidg Exp $
+ * $Id: if_ep.c,v 1.28 1995/05/30 08:02:07 rgrimes Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@@ -1129,6 +1129,8 @@ epioctl(ifp, cmd, data)
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
+ s = splimp();
+
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
@@ -1210,6 +1212,9 @@ epioctl(ifp, cmd, data)
default:
error = EINVAL;
}
+
+ splx(s);
+
return (error);
}
diff --git a/sys/i386/isa/if_ep.c b/sys/i386/isa/if_ep.c
index 3b677d6..5e249de 100644
--- a/sys/i386/isa/if_ep.c
+++ b/sys/i386/isa/if_ep.c
@@ -38,7 +38,7 @@
*/
/*
- * $Id: if_ep.c,v 1.27 1995/05/27 04:40:57 davidg Exp $
+ * $Id: if_ep.c,v 1.28 1995/05/30 08:02:07 rgrimes Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@@ -1129,6 +1129,8 @@ epioctl(ifp, cmd, data)
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
+ s = splimp();
+
switch (cmd) {
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP;
@@ -1210,6 +1212,9 @@ epioctl(ifp, cmd, data)
default:
error = EINVAL;
}
+
+ splx(s);
+
return (error);
}
OpenPOWER on IntegriCloud