summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/bpf_buffer.c')
-rw-r--r--sys/net/bpf_buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/bpf_buffer.c b/sys/net/bpf_buffer.c
index d338fca..869e70b 100644
--- a/sys/net/bpf_buffer.c
+++ b/sys/net/bpf_buffer.c
@@ -184,9 +184,9 @@ bpf_buffer_ioctl_sblen(struct bpf_d *d, u_int *i)
{
u_int size;
- BPFD_LOCK(d);
+ BPFD_WLOCK(d);
if (d->bd_bif != NULL) {
- BPFD_UNLOCK(d);
+ BPFD_WUNLOCK(d);
return (EINVAL);
}
size = *i;
@@ -195,7 +195,7 @@ bpf_buffer_ioctl_sblen(struct bpf_d *d, u_int *i)
else if (size < BPF_MINBUFSIZE)
*i = size = BPF_MINBUFSIZE;
d->bd_bufsize = size;
- BPFD_UNLOCK(d);
+ BPFD_WUNLOCK(d);
return (0);
}
OpenPOWER on IntegriCloud