]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block.c
vhost-scsi: prevent using uninitialized vqs
[mirror_qemu.git] / block.c
diff --git a/block.c b/block.c
index 39f373e03500398458c62e80e584c46a14494abe..a7f6a13a74a50fc837a8ab0f9ec5bc8d0d60f867 100644 (file)
--- a/block.c
+++ b/block.c
@@ -2787,6 +2787,7 @@ static BlockDriverState *bdrv_open_inherit(const char *filename,
     bdrv_parent_cb_change_media(bs, true);
 
     qobject_unref(options);
+    options = NULL;
 
     /* For snapshot=on, create a temporary qcow2 overlay. bs points to the
      * temporary snapshot afterwards. */