[libvirt] [PATCH 2/2] qemu: Move setting of encobjAdded for qemuDomainAttachSCSIDisk

John Ferlan jferlan at redhat.com
Tue Jul 19 14:54:50 UTC 2016


A post push realization that the boolean should be set inside the condition

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/qemu/qemu_hotplug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index aee62bb..cdad7ef 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -651,8 +651,8 @@ qemuDomainAttachSCSIDisk(virConnectPtr conn,
         encobjProps = NULL; /* qemuMonitorAddObject consumes */
         if (rv < 0)
             goto exit_monitor;
+        encobjAdded = true;
     }
-    encobjAdded = true;
 
     if (qemuMonitorAddDrive(priv->mon, drivestr) < 0)
         goto exit_monitor;
-- 
2.5.5




More information about the libvir-list mailing list