From be0fd0eb55c37f5210e932da3e3ed50005d7111f Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 13 Aug 2004 23:15:44 +0000 Subject: [PATCH] Since if_ie doesn't contain locking or run with INTR_MPSAFE, mark the interface as IFF_NEEDSGIANT so if_start is run holding Giant. --- sys/dev/ie/if_ie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c index 11239b4962a0..f30d7752f11f 100644 --- a/sys/dev/ie/if_ie.c +++ b/sys/dev/ie/if_ie.c @@ -309,7 +309,8 @@ ie_attach(device_t dev) ifp->if_softc = sc; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_mtu = ETHERMTU; - ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; + ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | + IFF_NEEDSGIANT; ifp->if_start = iestart; ifp->if_ioctl = ieioctl; ifp->if_init = ieinit;