Skip to contentSkip to conversation

Block patches

GIT PULL Applied Jeff Cody 2 participants 3 messages Jun 9, 2017 – Jun 13, 2017 Block layer

lore
Share & tools
lore

Jeff Cody

author
#0 lore raw

The following changes since commit 64175afc695c0672876fbbfc31b299c86d562cb4:

arm_gicv3: Fix ICC_BPR1 reset value when EL3 not implemented (2017-06-07 17:21:44 +0100)

are available in the git repository at:

git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request

for you to fetch changes up to 56faeb9bb6872b3f926b3b3e0452a70beea10af2:

block/gluster.c: Handle qdict_array_entries() failure (2017-06-09 08:41:29 -0400)

----------------------------------------------------------------
Gluster patch
----------------------------------------------------------------

Peter Maydell (1):
block/gluster.c: Handle qdict_array_entries() failure

 block/gluster.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Signature · 1 line
2.9.3
author
#1 lore raw

[Qemu-devel] [PULL 1/1] block/gluster.c: Handle qdict_array_entries() failure

From: Peter Maydell <[email protected]>

In qemu_gluster_parse_json(), the call to qdict_array_entries() could return a negative error code, which we were ignoring because we assigned the result to an unsigned variable. Fix this by using the 'int' type instead, which matches the return type of qdict_array_entries() and also the type we use for the loop enumeration variable 'i'.

(Spotted by Coverity, CID 1360960.)

Message-id: [email protected]

---
 block/gluster.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
block/gluster.c +1 -2
index 031596a..addceed 100644
@@ -493,8 +493,7 @@ static int qemu_gluster_parse_json(BlockdevOptionsGluster *gconf,
     Error *local_err = NULL;
     char *str = NULL;
     const char *ptr;
-    size_t num_servers;
-    int i, type;
+    int i, type, num_servers;
 
     /* create opts info from runtime_json_opts list */
     opts = qemu_opts_create(&runtime_json_opts, NULL, 0, &error_abort);
Signature · 1 line
2.9.3
#2 lore raw
In reply to Jeff Cody
Quoted 8 lines · Jeff Cody

The following changes since commit 64175afc695c0672876fbbfc31b299c86d562cb4:

arm_gicv3: Fix ICC_BPR1 reset value when EL3 not implemented (2017-06-07 17:21:44 +0100)

are available in the git repository at:

git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request

Quoted 7 lines

for you to fetch changes up to 56faeb9bb6872b3f926b3b3e0452a70beea10af2:

block/gluster.c: Handle qdict_array_entries() failure (2017-06-09 08:41:29 -0400)

----------------------------------------------------------------
Gluster patch
----------------------------------------------------------------

Applied, thanks.

-- PMM