diff options
| author | Brian Feldman <green@FreeBSD.org> | 2004-10-06 04:25:37 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2004-10-06 04:25:37 +0000 |
| commit | 93daabdd8394b62d439436a09d341b46fafd68ef (patch) | |
| tree | c6923ee4865356cce9d6137cf32980f0c0220fd9 | |
| parent | 6f9e3ebf47f9cf06e5df9f3d19f585adb21bb63e (diff) | |
Notes
| -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 bfe8a91188e2..118d266a20f2 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1558,10 +1558,10 @@ bpf_setdlt(d, dlt) } mtx_unlock(&bpf_mtx); if (bp != NULL) { - BPFD_LOCK(d); opromisc = d->bd_promisc; bpf_detachd(d); bpf_attachd(d, bp); + BPFD_LOCK(d); reset_d(d); BPFD_UNLOCK(d); if (opromisc) { |
