virtio: zero data structs in virtio_vring_init
Change-Id: I877cf1abb062a90f428c3ec0cab5c6e9dad0ca82
Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vnet/devices/virtio/virtio.c b/src/vnet/devices/virtio/virtio.c
index 63ca601..7418673 100644
--- a/src/vnet/devices/virtio/virtio.c
+++ b/src/vnet/devices/virtio/virtio.c
@@ -62,9 +62,9 @@
{
clib_error_t *err = 0;
virtio_vring_t *vring;
- struct vhost_vring_state state;
- struct vhost_vring_addr addr;
- struct vhost_vring_file file;
+ struct vhost_vring_state state = { 0 };
+ struct vhost_vring_addr addr = { 0 };
+ struct vhost_vring_file file = { 0 };
clib_file_t t = { 0 };
int i;