OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7af5eea
)
vdi: Fix vdi_co_do_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 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>
block/vdi.c
patch
|
blob
|
history
diff --git
a/block/vdi.c
b/block/vdi.c
index
96a22b8
..
668af0a
100644
(file)
--- 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);