aboutsummaryrefslogtreecommitdiff
path: root/backends/cryptodev-vhost.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cryptodev-vhost.c')
-rw-r--r--backends/cryptodev-vhost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/cryptodev-vhost.c b/backends/cryptodev-vhost.c
index 8718c97..943680a 100644
--- a/backends/cryptodev-vhost.c
+++ b/backends/cryptodev-vhost.c
@@ -53,7 +53,7 @@ cryptodev_vhost_init(
CryptoDevBackendVhost *crypto;
Error *local_err = NULL;
- crypto = g_new(CryptoDevBackendVhost, 1);
+ crypto = g_new0(CryptoDevBackendVhost, 1);
crypto->dev.max_queues = 1;
crypto->dev.nvqs = 1;
crypto->dev.vqs = crypto->vqs;