diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-09-21 23:59:21 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-09-21 23:59:21 +0000 |
commit | 3daf558d24dc1a1d69db5039c3b5e2b9e1dbacf2 (patch) | |
tree | 0c21bc85bcadb1ef447e7b60de2ba535972112aa /sys/dev/usb | |
parent | 9fd790463a2622deaa0e7a690389b2a8b1f6671a (diff) |
Add missing splnet to the ioctl handler.
ok jsg@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_axe.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index 3a0dd25ab34..a2bb9b44c2b 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.86 2008/09/10 14:01:23 blambert Exp $ */ +/* $OpenBSD: if_axe.c,v 1.87 2008/09/21 23:59:20 brad Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Jonathan Gray <jsg@openbsd.org> @@ -1337,7 +1337,9 @@ axe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) struct ifaddr *ifa = (struct ifaddr *)data; struct mii_data *mii; uWord rxmode; - int error = 0; + int s, error = 0; + + s = splnet(); switch(cmd) { case SIOCSIFADDR: @@ -1410,6 +1412,7 @@ axe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) break; } + splx(s); return(error); } |