aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2007-09-15 23:30:10 +0000
committerWarner Losh <imp@FreeBSD.org>2007-09-15 23:30:10 +0000
commit30ac77cd2567c34dba5de8a68f31f4d8fbc9575c (patch)
tree33be963db66febc326cdade8560d84d679c08574
parent21c376969a92384b3d4bd7638283474a66c9a737 (diff)
downloadsrc-30ac77cd2567c34dba5de8a68f31f4d8fbc9575c.tar.gz
src-30ac77cd2567c34dba5de8a68f31f4d8fbc9575c.zip
Zyd needs be under Giant because USB is under Giant.
Submitted by: Weongyo Jeong Reviewed by: sam@ Approved by: re@ (blanket)
Notes
Notes: svn path=/head/; revision=172192
-rw-r--r--sys/dev/usb/if_zyd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c
index 76df578b1bc5..36ba8d85c80e 100644
--- a/sys/dev/usb/if_zyd.c
+++ b/sys/dev/usb/if_zyd.c
@@ -299,7 +299,8 @@ zyd_attach(device_t dev)
ifp->if_softc = sc;
if_initname(ifp, "zyd", device_get_unit(sc->sc_dev));
- ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+ ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST |
+ IFF_NEEDSGIANT; /* USB stack is still under Giant lock */
ifp->if_init = zyd_init;
ifp->if_ioctl = zyd_ioctl;
ifp->if_start = zyd_start;