summaryrefslogtreecommitdiffstats
path: root/sys/dev/ray
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-13 23:39:07 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-13 23:39:07 +0000
commit58dec551ba2cb24b56778e4af75fdf9f681efcd1 (patch)
treea6b250f2a9692f19c425af5b8de29be256c4fc4b /sys/dev/ray
parentd9942f2ea286dd3bff456e4392798b2e377a8110 (diff)
downloadFreeBSD-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/dev/ray')
-rw-r--r--sys/dev/ray/if_ray.c3
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 ;-) */
OpenPOWER on IntegriCloud