Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178113456
D62152.1796000545.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
505 B
Referenced Files
None
Subscribers
None
D62152.1796000545.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 30, 1:02 AM (22 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42077833
Default Alt Text
D62152.1796000545.diff (505 B)
Attached To
Mode
D62152: netmap: Clear ni_bufs_head in a new netmap_if
Attached
Detach File
Event Timeline