diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-05-25 14:48:16 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-29 22:19:57 +0200 |
commit | 4a5f2779bad769184550869931937acd0707ec3b (patch) | |
tree | 06b869a130b1d4e5dfed7c0a6cb31d4b34c8e632 /block/vhdx.c | |
parent | 53618dd83885cc551a3833e228cf714494602142 (diff) | |
download | qemu-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/vhdx.c')
-rw-r--r-- | block/vhdx.c | 2 |
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); |