[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH 41/43] block/iscsi: fix uninitialized variable
From: |
Michael Roth |
Subject: |
[Qemu-stable] [PATCH 41/43] block/iscsi: fix uninitialized variable |
Date: |
Tue, 24 Feb 2015 15:48:16 -0600 |
From: Peter Wu <address@hidden>
'ret' was never initialized in the success path.
Signed-off-by: Peter Wu <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
(cherry picked from commit debfb917a4f9c0784772c86f110f2bcd22e5a14f)
Signed-off-by: Michael Roth <address@hidden>
---
block/iscsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/iscsi.c b/block/iscsi.c
index ed375fc..12ddbfb 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -1286,7 +1286,7 @@ static int iscsi_open(BlockDriverState *bs, QDict
*options, int flags,
QemuOpts *opts;
Error *local_err = NULL;
const char *filename;
- int i, ret;
+ int i, ret = 0;
if ((BDRV_SECTOR_SIZE % 512) != 0) {
error_setg(errp, "iSCSI: Invalid BDRV_SECTOR_SIZE. "
--
1.9.1
- [Qemu-stable] [PATCH 02/43] block: Omit bdrv_find_format for essential drivers, (continued)
- [Qemu-stable] [PATCH 02/43] block: Omit bdrv_find_format for essential drivers, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 36/43] target-arm/translate-a64: Fix wrong mmu_idx usage for LDT/STT, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 34/43] sb16: fix interrupt acknowledgement, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 35/43] hw/input/hid.c Fix capslock hid code, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 39/43] libcacard: stop linking against every single 3rd party library, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 37/43] vfio-pci: Fix missing unparent of dynamically allocated MemoryRegion, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 38/43] qemu-thread: fix qemu_event without futexes, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 40/43] fix mc146818rtc wrong subsection name to avoid vmstate_subsection_load() fail, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 03/43] block/vvfat: qcow driver may not be found, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 43/43] exec: change default exception_index value for migration to -1, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 41/43] block/iscsi: fix uninitialized variable,
Michael Roth <=
- [Qemu-stable] [PATCH 42/43] qtest: Fix deadloop by running main loop AIO context's timers, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 04/43] block/nfs: Add create_opts, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 06/43] qemu-img: Check create_opts before image creation, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 08/43] iotests: Only kill NBD server if it runs, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 05/43] block: Check create_opts before image creation, Michael Roth, 2015/02/24
- [Qemu-stable] [PATCH 07/43] qemu-img: Check create_opts before image amendment, Michael Roth, 2015/02/24
- Re: [Qemu-stable] Patch Round-up for stable 2.2.1, freeze on 2015-03-05, Gonglei (Arei), 2015/02/24
- Re: [Qemu-stable] [Qemu-devel] Patch Round-up for stable 2.2.1, freeze on 2015-03-05, Leon Alrae, 2015/02/25
- Re: [Qemu-stable] Patch Round-up for stable 2.2.1, freeze on 2015-03-05, Peter Lieven, 2015/02/25