Since if_ray 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
68c7bc6de8
commit
1d6aa1687f
@ -506,7 +506,8 @@ ray_attach(device_t dev)
|
||||
ifp->if_softc = sc;
|
||||
if_initname(ifp, device_get_name(dev), device_get_unit(dev));
|
||||
ifp->if_timer = 0;
|
||||
ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST);
|
||||
ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST |
|
||||
IFF_NEEDSGIANT);
|
||||
ifp->if_hdrlen = sizeof(struct ieee80211_frame) +
|
||||
sizeof(struct ether_header);
|
||||
ifp->if_baudrate = 1000000; /* Is this baud or bps ;-) */
|
||||
|
Loading…
Reference in New Issue
Block a user