From: John Ferlan Date: Tue, 19 Jul 2016 14:50:40 +0000 (-0400) Subject: qemu: Move setting of encobjAdded for qemuDomainAttachSCSIDisk X-Git-Tag: v2.1.0-rc1~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f5debbeb4bf39049f212572a249da0483d6d3bb;p=thirdparty%2Flibvirt.git qemu: Move setting of encobjAdded for qemuDomainAttachSCSIDisk A post push realization that the boolean should be set inside the condition --- diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index aee62bb4e0..cdad7eff00 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;