From 463d14faf8ddc56632b7d1dcc13576349eb7e237 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 13 Aug 2004 23:04:23 +0000 Subject: 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. --- sys/dev/ed/if_ed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index 13c3ef10fa68..bccc4b974377 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 -- cgit v1.3