3e5111
From 71bdd999481b2feaecceb39dd3cfb7dfa61de3af Mon Sep 17 00:00:00 2001
3e5111
Message-Id: <71bdd999481b2feaecceb39dd3cfb7dfa61de3af@dist-git>
3e5111
From: Peter Krempa <pkrempa@redhat.com>
3e5111
Date: Thu, 25 May 2017 14:33:25 +0200
3e5111
Subject: [PATCH] qemu: Use correct variable in qemuDomainSetBlockIoTune
3e5111
3e5111
'param' contains the correct element from 'params'.
3e5111
3e5111
If the group name would not be the first parameter libvirtd would crash.
3e5111
3e5111
Introduced in c53bd25b13.
3e5111
3e5111
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1455510
3e5111
(cherry picked from commit 0d3aff58e7ed190c97b40ee92f58cb0180cef6fe)
3e5111
3e5111
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3e5111
---
3e5111
 src/qemu/qemu_driver.c | 2 +-
3e5111
 1 file changed, 1 insertion(+), 1 deletion(-)
3e5111
3e5111
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
3e5111
index 3241de4cb..c31d07a65 100644
3e5111
--- a/src/qemu/qemu_driver.c
3e5111
+++ b/src/qemu/qemu_driver.c
3e5111
@@ -17445,7 +17445,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
3e5111
 
3e5111
         /* NB: Cannot use macro since this is a value.s not a value.ul */
3e5111
         if (STREQ(param->field, VIR_DOMAIN_BLOCK_IOTUNE_GROUP_NAME)) {
3e5111
-            if (VIR_STRDUP(info.group_name, params->value.s) < 0)
3e5111
+            if (VIR_STRDUP(info.group_name, param->value.s) < 0)
3e5111
                 goto endjob;
3e5111
             set_fields |= QEMU_BLOCK_IOTUNE_SET_GROUP_NAME;
3e5111
             if (virTypedParamsAddString(&eventParams, &eventNparams,
3e5111
-- 
3e5111
2.13.0
3e5111