diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-13 22:48:05 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-13 22:48:05 +0000 |
commit | f57f7a321221577a26b739817e8ce772840957b6 (patch) | |
tree | 7c96b88dd90b1cfbf88a7d2c0c40478ef3c288fa /sys/dev | |
parent | a8a8b4c153655991cf4f92b7aadc1e1da3f65126 (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/de/if_de.c | 2 |
1 files changed, 1 insertions, 1 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; |