Since if_lge 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:
parent
9878d4a745
commit
7e9810d11e
@ -556,7 +556,8 @@ lge_attach(dev)
|
||||
ifp->if_softc = sc;
|
||||
if_initname(ifp, device_get_name(dev), device_get_unit(dev));
|
||||
ifp->if_mtu = ETHERMTU;
|
||||
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
|
||||
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST |
|
||||
IFF_NEEDSGIANT;
|
||||
ifp->if_ioctl = lge_ioctl;
|
||||
ifp->if_start = lge_start;
|
||||
ifp->if_watchdog = lge_watchdog;
|
||||
|
Loading…
Reference in New Issue
Block a user