Commit 4a5f2779 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

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: default avatarKevin Wolf <kwolf@redhat.com>
Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Reviewed-by: default avatarJeff Cody <jcody@redhat.com>
parent 53618dd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);