summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 1022e87..5f313c0 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1113,7 +1113,7 @@ filt_bpfread(kn, hint)
struct bpf_d *d = (struct bpf_d *)kn->kn_hook;
int ready;
- BPFD_LOCK(d);
+ BPFD_LOCK_ASSERT(d);
ready = bpf_ready(d);
if (ready) {
kn->kn_data = d->bd_slen;
@@ -1125,7 +1125,6 @@ filt_bpfread(kn, hint)
bpf_timed_out, d);
d->bd_state = BPF_WAITING;
}
- BPFD_UNLOCK(d);
return (ready);
}
OpenPOWER on IntegriCloud