summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 8d01cd9..8bb0fe5 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -580,9 +580,9 @@ bpfwrite(dev, uio, ioflag)
mac_create_mbuf_from_bpfdesc(d, m);
BPFD_UNLOCK(d);
#endif
- mtx_lock(&Giant);
+ NET_LOCK_GIANT();
error = (*ifp->if_output)(ifp, m, &dst, (struct rtentry *)0);
- mtx_unlock(&Giant);
+ NET_UNLOCK_GIANT();
/*
* The driver frees the mbuf.
*/
OpenPOWER on IntegriCloud