aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2018-05-25 14:48:16 +0200
committerKevin Wolf <kwolf@redhat.com>2018-05-29 22:19:57 +0200
commit4a5f2779bad769184550869931937acd0707ec3b (patch)
tree06b869a130b1d4e5dfed7c0a6cb31d4b34c8e632 /block
parent53618dd83885cc551a3833e228cf714494602142 (diff)
downloadqemu-4a5f2779bad769184550869931937acd0707ec3b.zip
qemu-4a5f2779bad769184550869931937acd0707ec3b.tar.gz
qemu-4a5f2779bad769184550869931937acd0707ec3b.tar.bz2
vhdx: Fix vhdx_co_create() return value
.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>
Diffstat (limited to 'block')
-rw-r--r--block/vhdx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vhdx.c b/block/vhdx.c
index 0b1e21c..b1ba121 100644
--- a/block/vhdx.c
+++ b/block/vhdx.c
@@ -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);