diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-05-25 14:48:16 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-29 22:19:57 +0200 |
commit | 53618dd83885cc551a3833e228cf714494602142 (patch) | |
tree | 9d9247cf49be7a676c150fb795bfe50d1f16931f | |
parent | 7af5eea9b34ffb7a9a9fc25ba71998a02b76e159 (diff) |
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>
-rw-r--r-- | block/vdi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/vdi.c b/block/vdi.c index 96a22b8e83..668af0a828 100644 --- a/block/vdi.c +++ b/block/vdi.c @@ -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); |