[PATCH] qemu_extdevice: Do cleanup host only for VIR_DOMAIN_TPM_TYPE_EMULATOR

Ján Tomko jtomko at redhat.com
Fri Feb 10 09:02:25 UTC 2023


On a Friday in 2023, Michal Privoznik wrote:
>We only set up host for VIR_DOMAIN_TPM_TYPE_EMULATOR and thus
>similarly, we should do cleanup for the same type. This also
>fixes a crasher, in which qemuTPMEmulatorCleanupHost() accesses
>tpm->data.emulator.storagepath which is NULL for
>VIR_DOMAIN_TPM_TYPE_EXTERNAL.
>
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2168762
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/qemu/qemu_extdevice.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230210/96c1e041/attachment.sig>


More information about the libvir-list mailing list