summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-13 23:04:23 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-13 23:04:23 +0000
commit637083422130ca4d5bfe9adad017e590d0c72ffb (patch)
tree4c33340bfd1e5156214113e40c924ad241c8e226
parentcf3b0b037a0a22aec45be1e7f07101845bec4357 (diff)
downloadFreeBSD-src-637083422130ca4d5bfe9adad017e590d0c72ffb.zip
FreeBSD-src-637083422130ca4d5bfe9adad017e590d0c72ffb.tar.gz
Since if_ed doesn't contain locking or run with INTR_MPSAFE, mark
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
-rw-r--r--sys/dev/ed/if_ed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 13c3ef1..bccc4b9 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -1744,10 +1744,10 @@ ed_attach(dev)
*/
if (device_get_flags(dev) & ED_FLAGS_DISABLE_TRANCEIVER)
ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX |
- IFF_MULTICAST | IFF_ALTPHYS);
+ IFF_MULTICAST | IFF_ALTPHYS | IFF_NEEDSGIANT);
else
ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX |
- IFF_MULTICAST);
+ IFF_MULTICAST | IFF_NEEDSGIANT);
/*
* Attach the interface
OpenPOWER on IntegriCloud