Commit 30270587 authored by Stefan Berger's avatar Stefan Berger
Browse files

tpm: Set the flags of the CMD_INIT command to 0



The flags of the CMD_INIT control channel command were not
initialized properly. Fix this and set to 0.

Signed-off-by: default avatarStefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 0d144291
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -320,7 +320,9 @@ static int tpm_emulator_set_buffer_size(TPMBackend *tb,
static int tpm_emulator_startup_tpm(TPMBackend *tb, size_t buffersize)
{
    TPMEmulator *tpm_emu = TPM_EMULATOR(tb);
    ptm_init init;
    ptm_init init = {
        .u.req.init_flags = 0,
    };
    ptm_res res;

    if (buffersize != 0 &&