projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53618dd
)
vhdx: Fix vhdx_co_create() return value
author
Kevin Wolf
<kwolf@redhat.com>
Fri, 25 May 2018 12:48:16 +0000
(14:48 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Tue, 29 May 2018 20:19:57 +0000
(22:19 +0200)
.bdrv_co_create() is supposed to return 0 on success, but vhdx 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>
block/vhdx.c
patch
|
blob
|
history
diff --git
a/block/vhdx.c
b/block/vhdx.c
index 0b1e21c7501bae09597b496ee506b029556ed94f..b1ba121bb6fcfee669b0356564b46bbe5ee9a477 100644
(file)
--- a/
block/vhdx.c
+++ b/
block/vhdx.c
@@
-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);