From f57f7a321221577a26b739817e8ce772840957b6 Mon Sep 17 00:00:00 2001 From: rwatson Date: Fri, 13 Aug 2004 22:48:05 +0000 Subject: Since the if_de driver doesn't contain locking, mark it as IFF_NEEDSGIANT so that ifp->if_start won't be called without Giant when running debug.mpsafenet=1. --- sys/pci/if_de.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/pci') diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c index 906510b..0e25f62 100644 --- a/sys/pci/if_de.c +++ b/sys/pci/if_de.c @@ -4758,7 +4758,7 @@ tulip_attach( /* XXX: driver name/unit should be set some other way */ ifp->if_dname = "de"; ifp->if_dunit = sc->tulip_unit; - ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST; + ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST|IFF_NEEDSGIANT; ifp->if_ioctl = tulip_ifioctl; ifp->if_start = tulip_ifstart; ifp->if_watchdog = tulip_ifwatchdog; -- cgit v1.1