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>
This commit is contained in:
parent
53618dd838
commit
4a5f2779ba
|
@ -1951,7 +1951,7 @@ static int coroutine_fn vhdx_co_create(BlockdevCreateOptions *opts,
|
||||||
goto delete_and_exit;
|
goto delete_and_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = 0;
|
||||||
delete_and_exit:
|
delete_and_exit:
|
||||||
blk_unref(blk);
|
blk_unref(blk);
|
||||||
bdrv_unref(bs);
|
bdrv_unref(bs);
|
||||||
|
|
Loading…
Reference in New Issue