From a1755216cf83cade19520a121e47d82997ea73b2 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 13 Aug 2004 23:09:41 +0000 Subject: Since if_fwip doesn't contain locking or run with INTR_MPSAFE, mark the interface as IFF_NEEDSGIANT so if_start is run holding Giant. Approved by: dfr --- sys/dev/firewire/if_fwip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/firewire/if_fwip.c b/sys/dev/firewire/if_fwip.c index 874e3ecfbb7e..2c11a253ecbe 100644 --- a/sys/dev/firewire/if_fwip.c +++ b/sys/dev/firewire/if_fwip.c @@ -209,7 +209,8 @@ fwip_attach(device_t dev) ifp->if_init = fwip_init; ifp->if_start = fwip_start; ifp->if_ioctl = fwip_ioctl; - ifp->if_flags = (IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST); + ifp->if_flags = (IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST| + IFF_NEEDSGIANT); ifp->if_snd.ifq_maxlen = TX_MAX_QUEUE; s = splimp(); -- cgit v1.3