From 0564d2c810d6d4d45b5556efa8e250b7f57e7f5a Mon Sep 17 00:00:00 2001 From: rwatson Date: Fri, 13 Aug 2004 23:02:17 +0000 Subject: Since if_cp doesn't contain locking or run with INTR_MPSAFE, mark the interface as IFF_NEEDSGIANT so if_start is run holding Giant. --- sys/dev/cp/if_cp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/cp') diff --git a/sys/dev/cp/if_cp.c b/sys/dev/cp/if_cp.c index 7a54dcf..85d1836 100644 --- a/sys/dev/cp/if_cp.c +++ b/sys/dev/cp/if_cp.c @@ -508,7 +508,8 @@ static int cp_attach (device_t dev) d->pp.pp_if.if_name = "cp"; #endif d->pp.pp_if.if_mtu = PP_MTU; - d->pp.pp_if.if_flags = IFF_POINTOPOINT | IFF_MULTICAST; + d->pp.pp_if.if_flags = IFF_POINTOPOINT | IFF_MULTICAST | + IFF_NEEDSGIANT; d->pp.pp_if.if_ioctl = cp_sioctl; d->pp.pp_if.if_start = cp_ifstart; d->pp.pp_if.if_watchdog = cp_ifwatchdog; -- cgit v1.1