[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/5] tpm: Set the flags of the CMD_INIT command to 0
From: |
Stefan Berger |
Subject: |
[Qemu-devel] [PULL 1/5] tpm: Set the flags of the CMD_INIT command to 0 |
Date: |
Fri, 26 Jan 2018 13:49:24 -0500 |
The flags of the CMD_INIT control channel command were not
initialized properly. Fix this and set to 0.
Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
---
hw/tpm/tpm_emulator.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/tpm/tpm_emulator.c b/hw/tpm/tpm_emulator.c
index 35c78de..532d3e3 100644
--- a/hw/tpm/tpm_emulator.c
+++ b/hw/tpm/tpm_emulator.c
@@ -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 &&
--
2.5.5
- [Qemu-devel] [PULL 0/5] Merge tpm 2018/01/26, Stefan Berger, 2018/01/26
- [Qemu-devel] [PULL 3/5] tpm: replace GThreadPool with AIO threadpool, Stefan Berger, 2018/01/26
- [Qemu-devel] [PULL 2/5] tpm: lookup cancel path under tpm device class, Stefan Berger, 2018/01/26
- [Qemu-devel] [PULL 4/5] tpm: report backend request error, Stefan Berger, 2018/01/26
- [Qemu-devel] [PULL 1/5] tpm: Set the flags of the CMD_INIT command to 0,
Stefan Berger <=
- [Qemu-devel] [PULL 5/5] tpm: add CRB device, Stefan Berger, 2018/01/26
- Re: [Qemu-devel] [PULL 0/5] Merge tpm 2018/01/26, Peter Maydell, 2018/01/29