[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/17] vdi: Fix vdi_co_do_create() return value
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 02/17] vdi: Fix vdi_co_do_create() return value |
Date: |
Wed, 30 May 2018 17:56:32 +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 <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
Reviewed-by: Jeff Cody <address@hidden>
---
block/vdi.c | 1 +
1 file changed, 1 insertion(+)
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);
--
2.13.6
- [Qemu-devel] [PULL 00/17] Block layer patches, Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 02/17] vdi: Fix vdi_co_do_create() return value,
Kevin Wolf <=
- [Qemu-devel] [PULL 01/17] qcow2: Fix Coverity warning when calculating the refcount cache size, Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 03/17] vhdx: Fix vhdx_co_create() return value, Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 06/17] qemu-iotests: Add VM.get_qmp_events_filtered(), Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 04/17] job: Add error message for failing jobs, Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 08/17] qemu-iotests: Add iotests.img_info_log(), Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 05/17] block/create: Make x-blockdev-create a job, Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 07/17] qemu-iotests: Add VM.qmp_log(), Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 09/17] qemu-iotests: Add VM.run_job(), Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 10/17] qemu-iotests: iotests.py helper for non-file protocols, Kevin Wolf, 2018/05/30
- [Qemu-devel] [PULL 12/17] qemu-iotests: Rewrite 207 for blockdev-create job, Kevin Wolf, 2018/05/30