diff options
Diffstat (limited to 'tpm.c')
| -rw-r--r-- | tpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpm.c b/tpm.c index 9ed708e22b..9a7c7114d3 100644 --- a/tpm.c +++ b/tpm.c @@ -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; |