Since if_awi doesn't contain locking or run with INTR_MPSAFE, mark

the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
This commit is contained in:
Robert Watson 2004-08-13 22:55:25 +00:00
parent ea69bf33ec
commit ec722f0875
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133677

View file

@ -283,7 +283,7 @@ awi_attach(struct awi_softc *sc)
#ifdef IFF_NOTRAILERS
IFF_NOTRAILERS |
#endif
IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST;
IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST | IFF_NEEDSGIANT;
ifp->if_ioctl = awi_ioctl;
ifp->if_start = awi_start;
ifp->if_watchdog = awi_watchdog;