Skip to content

Commit

Permalink
tpm: Set the flags of the CMD_INIT command to 0
Browse files Browse the repository at this point in the history
The flags of the CMD_INIT control channel command were not
initialized properly. Fix this and set to 0.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
(cherry picked from commit 3027058)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
stefanberger authored and mdroth committed Jun 21, 2018
1 parent 4f81878 commit e2fc495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hw/tpm/tpm_emulator.c
Expand Up @@ -260,7 +260,9 @@ static int tpm_emulator_check_caps(TPMEmulator *tpm_emu)
static int tpm_emulator_startup_tpm(TPMBackend *tb)
{
TPMEmulator *tpm_emu = TPM_EMULATOR(tb);
ptm_init init;
ptm_init init = {
.u.req.init_flags = 0,
};
ptm_res res;

DPRINTF("%s", __func__);
Expand Down

0 comments on commit e2fc495

Please sign in to comment.