render / rpms / libvirt

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