Commit 53618dd8 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

vdi: Fix vdi_co_do_create() return value



.bdrv_co_create() is supposed to return 0 on success, but vdi 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 7af5eea9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -865,6 +865,7 @@ static int coroutine_fn vdi_co_do_create(BlockdevCreateOptions *create_options,
        }
    }

    ret = 0;
exit:
    blk_unref(blk);
    bdrv_unref(bs_file);