Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment