From: Kevin Wolf Date: Fri, 25 May 2018 12:48:16 +0000 (+0200) Subject: vhdx: Fix vhdx_co_create() return value X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4a5f2779bad769184550869931937acd0707ec3b;p=qemu.git 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 Reviewed-by: Max Reitz Reviewed-by: Jeff Cody --- diff --git a/block/vhdx.c b/block/vhdx.c index 0b1e21c750..b1ba121bb6 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);