Page MenuHomeFreeBSD

D62152.1795946708.diff
No OneTemporary

Authored By
Unknown
Size
505 B
Referenced Files
None
Subscribers
None

D62152.1795946708.diff

diff --git a/sys/dev/netmap/netmap_mem2.c b/sys/dev/netmap/netmap_mem2.c
--- a/sys/dev/netmap/netmap_mem2.c
+++ b/sys/dev/netmap/netmap_mem2.c
@@ -2150,6 +2150,8 @@
*(u_int *)(uintptr_t)&nifp->ni_host_rx_rings =
(na->num_host_rx_rings ? na->num_host_rx_rings : 1);
strlcpy(nifp->ni_name, na->name, sizeof(nifp->ni_name));
+ /* The memory is not zeroed and may hold the previous owner's list. */
+ nifp->ni_bufs_head = 0;
/*
* fill the slots for the rx and tx rings. They contain the offset

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 29, 10:05 AM (7 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42077833
Default Alt Text
D62152.1795946708.diff (505 B)

Event Timeline