]> Git Repo - qemu.git/blobdiff - block/vmdk.c
block: Change BDS parameter of bdrv_open() to **
[qemu.git] / block / vmdk.c
index ff6f5ee911e77319395cbd11ff1ebaea5e2fe9ed..0622db51c449168a9ab2ba1d3382d728e9d9be1c 100644 (file)
@@ -1755,10 +1755,9 @@ static int vmdk_create(const char *filename, QEMUOptionParameter *options,
         goto exit;
     }
     if (backing_file) {
-        BlockDriverState *bs = bdrv_new("");
-        ret = bdrv_open(bs, backing_file, NULL, BDRV_O_NO_BACKING, NULL, errp);
+        BlockDriverState *bs = NULL;
+        ret = bdrv_open(&bs, backing_file, NULL, BDRV_O_NO_BACKING, NULL, errp);
         if (ret != 0) {
-            bdrv_unref(bs);
             goto exit;
         }
         if (strcmp(bs->drv->format_name, "vmdk")) {
This page took 0.022666 seconds and 4 git commands to generate.