Page MenuHomeFreeBSD

D15083.diff
No OneTemporary

D15083.diff

Index: head/sys/net/bpf.c
===================================================================
--- head/sys/net/bpf.c
+++ head/sys/net/bpf.c
@@ -98,6 +98,10 @@
MALLOC_DEFINE(M_BPF, "BPF", "BPF data");
+static struct bpf_if_ext dead_bpf_if = {
+ .bif_dlist = LIST_HEAD_INITIALIZER()
+};
+
struct bpf_if {
#define bif_next bif_ext.bif_next
#define bif_dlist bif_ext.bif_dlist
@@ -2659,7 +2663,7 @@
*/
BPFIF_WLOCK(bp);
bp->bif_flags |= BPFIF_FLAG_DYING;
- *bp->bif_bpf = NULL;
+ *bp->bif_bpf = (struct bpf_if *)&dead_bpf_if;;
BPFIF_WUNLOCK(bp);
CTR4(KTR_NET, "%s: sheduling free for encap %d (%p) for if %p",

File Metadata

Mime Type
text/plain
Expires
Sun, May 24, 3:41 AM (1 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33463619
Default Alt Text
D15083.diff (633 B)

Event Timeline