diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-02-29 15:32:33 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-02-29 15:32:33 +0000 |
| commit | f747d2dd909a0f207cf02356a8013eff58c380a7 (patch) | |
| tree | 52f910f3c44b62d143f4b595c3d7ecf3340ad8e7 /sys | |
| parent | d0930e869545ed2d55d73070361f9e9bf0fda2cb (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/net/bpf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index a24cce97ac4b..d0106409fe53 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -578,10 +578,12 @@ bpfwrite(dev, uio, ioflag) if (d->bd_hdrcmplt) dst.sa_family = pseudo_AF_HDRCMPLT; - mtx_lock(&Giant); #ifdef MAC + BPFD_LOCK(d); mac_create_mbuf_from_bpfdesc(d, m); + BPFD_UNLOCK(d); #endif + mtx_lock(&Giant); error = (*ifp->if_output)(ifp, m, &dst, (struct rtentry *)0); mtx_unlock(&Giant); /* |
