summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-13 22:48:05 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-13 22:48:05 +0000
commitf57f7a321221577a26b739817e8ce772840957b6 (patch)
tree7c96b88dd90b1cfbf88a7d2c0c40478ef3c288fa
parenta8a8b4c153655991cf4f92b7aadc1e1da3f65126 (diff)
downloadFreeBSD-src-f57f7a321221577a26b739817e8ce772840957b6.zip
FreeBSD-src-f57f7a321221577a26b739817e8ce772840957b6.tar.gz
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.
-rw-r--r--sys/dev/de/if_de.c2
-rw-r--r--sys/pci/if_de.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index 906510b..0e25f62 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/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;
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;
OpenPOWER on IntegriCloud