X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=tpm.c;h=9a7c7114d388cf984e907e7b77db4f761440ee8f;hb=5c32be5baf41aec4f4675d2bf24f9948756abf3c;hp=0a3e3d503238b9121d12f7fa1eb9a2ce709bf50a;hpb=05bec7eb0e6df6c166caea761b311d5c8c2b4cb8;p=mirror_qemu.git diff --git a/tpm.c b/tpm.c index 0a3e3d5032..9a7c7114d3 100644 --- a/tpm.c +++ b/tpm.c @@ -11,7 +11,7 @@ * * Based on net.c */ -#include "config-host.h" +#include "qemu/osdep.h" #include "qapi/qmp/qerror.h" #include "sysemu/tpm_backend.h" @@ -262,7 +262,7 @@ static TPMInfo *qmp_query_tpm_inst(TPMBackend *drv) case TPM_TYPE_PASSTHROUGH: res->options->type = TPM_TYPE_OPTIONS_KIND_PASSTHROUGH; tpo = g_new0(TPMPassthroughOptions, 1); - res->options->u.passthrough = tpo; + res->options->u.passthrough.data = tpo; if (drv->path) { tpo->path = g_strdup(drv->path); tpo->has_path = true;