From: Peter Krempa Date: Wed, 30 May 2018 09:33:13 +0000 (+0200) Subject: qemu: hotplug: Use 'tlsAlias' to see whether to detach the disk X-Git-Tag: v4.5.0-rc1~336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e8218fad7c0fccdfecc9c42cf23da17149a55c7;p=thirdparty%2Flibvirt.git qemu: hotplug: Use 'tlsAlias' to see whether to detach the disk Using 'haveTLS' to do this is pointless if the alias is not set. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 935be49510..98f8df6959 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -3958,7 +3958,7 @@ qemuDomainRemoveDiskDevice(virQEMUDriverPtr driver, !virStoragePRDefIsManaged(disk->src->pr)) ignore_value(qemuMonitorDelObject(priv->mon, disk->src->pr->mgralias)); - if (disk->src->haveTLS) + if (disk->src->tlsAlias) ignore_value(qemuMonitorDelObject(priv->mon, disk->src->tlsAlias)); if (prManaged && !prUsed)