]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vhdx: Fix vhdx_co_create() return value
authorKevin Wolf <kwolf@redhat.com>
Fri, 25 May 2018 12:48:16 +0000 (14:48 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 29 May 2018 20:19:57 +0000 (22:19 +0200)
.bdrv_co_create() is supposed to return 0 on success, but vhdx could
return a positive value instead. Fix this.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
block/vhdx.c

index 0b1e21c7501bae09597b496ee506b029556ed94f..b1ba121bb6fcfee669b0356564b46bbe5ee9a477 100644 (file)
@@ -1951,7 +1951,7 @@ static int coroutine_fn vhdx_co_create(BlockdevCreateOptions *opts,
         goto delete_and_exit;
     }
 
-
+    ret = 0;
 delete_and_exit:
     blk_unref(blk);
     bdrv_unref(bs);