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: 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
7af5eea9b3
commit
53618dd838
@ -865,6 +865,7 @@ static int coroutine_fn vdi_co_do_create(BlockdevCreateOptions *create_options,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = 0;
|
||||||
exit:
|
exit:
|
||||||
blk_unref(blk);
|
blk_unref(blk);
|
||||||
bdrv_unref(bs_file);
|
bdrv_unref(bs_file);
|
||||||
|
Loading…
Reference in New Issue
Block a user