summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index a8bbb5ac386..e3a7f96fdc3 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.102 2014/07/12 11:27:45 henning Exp $ */
+/* $OpenBSD: bpf.c,v 1.103 2014/07/12 18:44:22 tedu Exp $ */
/* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */
/*
@@ -913,7 +913,7 @@ bpf_setf(struct bpf_d *d, struct bpf_program *fp, int wf)
d->bd_rfilter = NULL;
bpf_reset_d(d);
splx(s);
- free(old, M_DEVBUF);
+ free(old, M_DEVBUF, 0);
return (0);
}
flen = fp->bf_len;
@@ -931,11 +931,11 @@ bpf_setf(struct bpf_d *d, struct bpf_program *fp, int wf)
d->bd_rfilter = fcode;
bpf_reset_d(d);
splx(s);
- free(old, M_DEVBUF);
+ free(old, M_DEVBUF, 0);
return (0);
}
- free(fcode, M_DEVBUF);
+ free(fcode, M_DEVBUF, 0);
return (EINVAL);
}
@@ -1455,11 +1455,11 @@ bpf_freed(struct bpf_d *d)
if (--d->bd_ref > 0)
return;
- free(d->bd_sbuf, M_DEVBUF);
- free(d->bd_hbuf, M_DEVBUF);
- free(d->bd_fbuf, M_DEVBUF);
- free(d->bd_rfilter, M_DEVBUF);
- free(d->bd_wfilter, M_DEVBUF);
+ free(d->bd_sbuf, M_DEVBUF, 0);
+ free(d->bd_hbuf, M_DEVBUF, 0);
+ free(d->bd_fbuf, M_DEVBUF, 0);
+ free(d->bd_rfilter, M_DEVBUF, 0);
+ free(d->bd_wfilter, M_DEVBUF, 0);
bpfilter_destroy(d);
}
@@ -1528,7 +1528,7 @@ bpfdetach(struct ifnet *ifp)
}
}
- free(bp, M_DEVBUF);
+ free(bp, M_DEVBUF, 0);
} else
pbp = &bp->bif_next;
}
@@ -1599,7 +1599,7 @@ void
bpfilter_destroy(struct bpf_d *bd)
{
LIST_REMOVE(bd, bd_list);
- free(bd, M_DEVBUF);
+ free(bd, M_DEVBUF, 0);
}
/*