Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147906022
D52568.1784749429.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
910 B
Referenced Files
None
Subscribers
None
D52568.1784749429.diff
View Options
diff --git a/sys/dev/netmap/netmap_kloop.c b/sys/dev/netmap/netmap_kloop.c
--- a/sys/dev/netmap/netmap_kloop.c
+++ b/sys/dev/netmap/netmap_kloop.c
@@ -161,7 +161,8 @@
struct netmap_kring *kring = a->kring;
struct nm_csb_atok *csb_atok = a->csb_atok;
struct nm_csb_ktoa *csb_ktoa = a->csb_ktoa;
- struct netmap_ring shadow_ring; /* shadow copy of the netmap_ring */
+ /* shadow copy of the netmap_ring */
+ struct netmap_ring shadow_ring = {0};
#ifdef SYNC_KLOOP_POLL
bool more_txspace = false;
#endif /* SYNC_KLOOP_POLL */
@@ -317,7 +318,8 @@
struct netmap_kring *kring = a->kring;
struct nm_csb_atok *csb_atok = a->csb_atok;
struct nm_csb_ktoa *csb_ktoa = a->csb_ktoa;
- struct netmap_ring shadow_ring; /* shadow copy of the netmap_ring */
+ /* shadow copy of the netmap_ring */
+ struct netmap_ring shadow_ring = {0};
int dry_cycles = 0;
#ifdef SYNC_KLOOP_POLL
bool some_recvd = false;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 7:43 PM (10 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29230607
Default Alt Text
D52568.1784749429.diff (910 B)
Attached To
Mode
D52568: netmap: silence -Wdefault-const-init-field-unsafe warning
Attached
Detach File
Event Timeline
Log In to Comment