diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:39:07 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:39:07 +0000 |
commit | 58dec551ba2cb24b56778e4af75fdf9f681efcd1 (patch) | |
tree | a6b250f2a9692f19c425af5b8de29be256c4fc4b /sys | |
parent | d9942f2ea286dd3bff456e4392798b2e377a8110 (diff) | |
download | FreeBSD-src-58dec551ba2cb24b56778e4af75fdf9f681efcd1.zip FreeBSD-src-58dec551ba2cb24b56778e4af75fdf9f681efcd1.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ray/if_ray.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c index 3dcab63..36e4c2a 100644 --- a/sys/dev/ray/if_ray.c +++ b/sys/dev/ray/if_ray.c @@ -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 ;-) */ |