From a2525edfd6178ed3abdbbce0b5b246ebff4025e3 Mon Sep 17 00:00:00 2001 From: rwatson Date: Fri, 13 Aug 2004 23:49:48 +0000 Subject: [PATCH] Since if_sr doesn't contain locking or run with INTR_MPSAFE, mark the interface as IFF_NEEDSGIANT so if_start is run holding Giant. --- sys/dev/sr/if_sr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c index 5f60aef31eb4..88668a7cb370 100644 --- a/sys/dev/sr/if_sr.c +++ b/sys/dev/sr/if_sr.c @@ -420,7 +420,8 @@ sr_attach(device_t device) if_initname(ifp, device_get_name(device), device_get_unit(device)); ifp->if_mtu = PP_MTU; - ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST; + ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST | + IFF_NEEDSGIANT; ifp->if_ioctl = srioctl; ifp->if_start = srstart; ifp->if_watchdog = srwatchdog;