Page MenuHomeFreeBSD

D15083.1795989195.diff
No OneTemporary

Authored By
Unknown
Size
646 B
Referenced Files
None
Subscribers
None

D15083.1795989195.diff

Index: sys/net/bpf.c
===================================================================
--- sys/net/bpf.c
+++ sys/net/bpf.c
@@ -98,6 +98,11 @@
MALLOC_DEFINE(M_BPF, "BPF", "BPF data");
+static struct bpf_if_ext dead_bpf_if = {
+ .bif_next = { NULL, NULL},
+ .bif_dlist = LIST_HEAD_INITIALIZER()
+};
+
struct bpf_if {
#define bif_next bif_ext.bif_next
#define bif_dlist bif_ext.bif_dlist
@@ -2659,7 +2664,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, Nov 29, 9:53 PM (7 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42097033
Default Alt Text
D15083.1795989195.diff (646 B)

Event Timeline