From 8863e34d03f57c125488fc55d8c8351b6a20ab6b Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Tue, 24 Jan 2017 22:40:56 +0000 Subject: splsoftnet() to NET_LOCK() in bpfwrite(). ok dlg@, visa@ --- sys/net/bpf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net') diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 9b4cb346579..c0bd4672ee3 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.159 2017/01/24 10:08:30 krw Exp $ */ +/* $OpenBSD: bpf.c,v 1.160 2017/01/24 22:40:55 mpi Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -624,9 +624,9 @@ bpfwrite(dev_t dev, struct uio *uio, int ioflag) if (d->bd_hdrcmplt && dst.ss_family == AF_UNSPEC) dst.ss_family = pseudo_AF_HDRCMPLT; - s = splsoftnet(); + NET_LOCK(s); error = ifp->if_output(ifp, m, (struct sockaddr *)&dst, NULL); - splx(s); + NET_UNLOCK(s); out: bpf_put(d); -- cgit v1.2.3