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

the interface as IFF_NEEDSGIANT so if_start is run holding Giant.

Approved by:	dfr
This commit is contained in:
rwatson 2004-08-13 23:09:41 +00:00
parent 2ab0b531c9
commit b702c717f3

View File

@ -209,7 +209,8 @@ fwip_attach(device_t dev)
ifp->if_init = fwip_init;
ifp->if_start = fwip_start;
ifp->if_ioctl = fwip_ioctl;
ifp->if_flags = (IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST);
ifp->if_flags = (IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST|
IFF_NEEDSGIANT);
ifp->if_snd.ifq_maxlen = TX_MAX_QUEUE;
s = splimp();