diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-07-05 16:28:31 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-07-05 16:28:31 +0000 |
commit | afd238548203ecc039b75cb3b8903521ec5c039b (patch) | |
tree | 32be4595c067d2e53eae04c2c84ef041188741d1 /sys/net/bpf.c | |
parent | c4117f759200d0362f81159ed2c11b939530ab3e (diff) | |
download | FreeBSD-src-afd238548203ecc039b75cb3b8903521ec5c039b.zip FreeBSD-src-afd238548203ecc039b75cb3b8903521ec5c039b.tar.gz |
In the BPF and ethernet bridging code, don't allow callouts to execute
without Giant if we're not debug.mpsafenet=1.
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r-- | sys/net/bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 189b72fe..8d43feb 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -352,7 +352,7 @@ bpfopen(dev, flags, fmt, td) mac_create_bpfdesc(td->td_ucred, d); #endif mtx_init(&d->bd_mtx, devtoname(dev), "bpf cdev lock", MTX_DEF); - callout_init(&d->bd_callout, CALLOUT_MPSAFE); + callout_init(&d->bd_callout, debug_mpsafenet ? CALLOUT_MPSAFE : 0); return (0); } |