[libvirt] [PATCH] qemu: Use correct variable in qemuDomainSetBlockIoTune

Peter Krempa posted 1 patch 6 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1e36d19d92e250bdb300cb705d4efac1b4a95f42.1495711028.git.pkrempa@redhat.com
src/qemu/qemu_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt] [PATCH] qemu: Use correct variable in qemuDomainSetBlockIoTune
Posted by Peter Krempa 6 years, 10 months ago
'param' contains the correct element from 'params'.

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

Introduced in c53bd25b13.
---
 src/qemu/qemu_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index cd513ff9f..67f54282a 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -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,
-- 
2.12.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] qemu: Use correct variable in qemuDomainSetBlockIoTune
Posted by Pavel Hrdina 6 years, 10 months ago
On Thu, May 25, 2017 at 01:17:08PM +0200, Peter Krempa wrote:
> 'param' contains the correct element from 'params'.
> 
> If the group name would not be the first element libvirtd would crash.
> 
> Introduced in c53bd25b13.
> ---
>  src/qemu/qemu_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] qemu: Use correct variable in qemuDomainSetBlockIoTune
Posted by Ján Tomko 6 years, 10 months ago
On Thu, May 25, 2017 at 01:17:08PM +0200, Peter Krempa wrote:
>'param' contains the correct element from 'params'.
>
>If the group name would not be the first element libvirtd would crash.
>

Is there a public bug you could link here?

>Introduced in c53bd25b13.
>---
> src/qemu/qemu_driver.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

ACK

Jan
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] qemu: Use correct variable in qemuDomainSetBlockIoTune
Posted by Peter Krempa 6 years, 10 months ago
On Thu, May 25, 2017 at 13:47:56 +0200, Ján Tomko wrote:
> On Thu, May 25, 2017 at 01:17:08PM +0200, Peter Krempa wrote:
> > 'param' contains the correct element from 'params'.
> > 
> > If the group name would not be the first element libvirtd would crash.
> > 
> 
> Is there a public bug you could link here?

There is now. I'll link it prior to pushing.
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list