mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemu: Use correct variable in qemuDomainSetBlockIoTune
'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
This commit is contained in:
parent
1e988b2356
commit
0d3aff58e7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user