Page MenuHomeFreeBSD

D52568.id168225.diff
No OneTemporary

D52568.id168225.diff

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

Mime Type
text/plain
Expires
Sun, Jan 25, 7:43 PM (57 m, 57 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27036286
Default Alt Text
D52568.id168225.diff (910 B)

Event Timeline