]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Move setting of encobjAdded for qemuDomainAttachSCSIDisk
authorJohn Ferlan <jferlan@redhat.com>
Tue, 19 Jul 2016 14:50:40 +0000 (10:50 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 20 Jul 2016 09:56:35 +0000 (05:56 -0400)
A post push realization that the boolean should be set inside the condition

src/qemu/qemu_hotplug.c

index aee62bb4e0e02a82ef19147a2a77998be47abfd7..cdad7eff004f1bf7c8bf63909261ca6c3eaceed2 100644 (file)
@@ -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;