From de1af409d2ce04d590e79acb615b5a89169efb1b Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 13 Aug 2004 23:03:11 +0000 Subject: [PATCH] Since if_cs doesn't contain locking or run with INTR_MPSAFE, mark the interface as IFF_NEEDSGIANT so if_start is run holding Giant. --- sys/dev/cs/if_cs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c index 352a8de825bb..939c2080c815 100644 --- a/sys/dev/cs/if_cs.c +++ b/sys/dev/cs/if_cs.c @@ -613,7 +613,8 @@ cs_attach(device_t dev) ifp->if_linkmiblen=sizeof sc->mibdata; */ - ifp->if_flags=(IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST ); + ifp->if_flags=(IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | + IFF_NEEDSGIANT); /* * this code still in progress (DMA support)