]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Use correct variable in qemuDomainSetBlockIoTune
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 May 2017 11:09:36 +0000 (13:09 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 25 May 2017 12:25:23 +0000 (14:25 +0200)
'param' contains the correct element from 'params'.

If the group name would not be the first parameter libvirtd would crash.

Introduced in c53bd25b13.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1455510

src/qemu/qemu_driver.c

index cd513ff9f832e68dab9b902d0028c79c8a10af7a..67f54282a07857b42150010a87ca8196b1102290 100644 (file)
@@ -17443,7 +17443,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
 
         /* NB: Cannot use macro since this is a value.s not a value.ul */
         if (STREQ(param->field, VIR_DOMAIN_BLOCK_IOTUNE_GROUP_NAME)) {
-            if (VIR_STRDUP(info.group_name, params->value.s) < 0)
+            if (VIR_STRDUP(info.group_name, param->value.s) < 0)
                 goto endjob;
             set_fields |= QEMU_BLOCK_IOTUNE_SET_GROUP_NAME;
             if (virTypedParamsAddString(&eventParams, &eventNparams,