diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-01-24 22:40:56 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-01-24 22:40:56 +0000 |
commit | 8863e34d03f57c125488fc55d8c8351b6a20ab6b (patch) | |
tree | 34b5cc58c10909e95c99ce3ab50e604784c89eeb /sys/net/bpf.c | |
parent | 495e61c7a4665af15c9fd94d7b518b815f3dbf19 (diff) |
splsoftnet() to NET_LOCK() in bpfwrite().
ok dlg@, visa@
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r-- | sys/net/bpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |