[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] [PATCH 2/4] tpm: use loop iterator to set sts data field
From: |
Stefan Berger |
Subject: |
[Qemu-stable] [PATCH 2/4] tpm: use loop iterator to set sts data field |
Date: |
Mon, 21 Jan 2019 12:07:29 -0500 |
From: Prasad J Pandit <address@hidden>
When TIS request is done, set 'sts' data field across all localities.
Signed-off-by: Prasad J Pandit <address@hidden>
Reviewed-by: Stefan Berger <address@hidden>
Signed-off-by: Stefan Berger <address@hidden>
---
hw/tpm/tpm_tis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
index 12f5c9a759..d9322692ee 100644
--- a/hw/tpm/tpm_tis.c
+++ b/hw/tpm/tpm_tis.c
@@ -295,7 +295,7 @@ static void tpm_tis_request_completed(TPMIf *ti, int ret)
if (s->cmd.selftest_done) {
for (l = 0; l < TPM_TIS_NUM_LOCALITIES; l++) {
- s->loc[locty].sts |= TPM_TIS_STS_SELFTEST_DONE;
+ s->loc[l].sts |= TPM_TIS_STS_SELFTEST_DONE;
}
}
--
2.17.2
- [Qemu-stable] [PATCH 0/4] TPM patches for stable-3.0.0 (v3.0.1), Stefan Berger, 2019/01/21
- [Qemu-stable] [PATCH 3/4] tpm: Make sure new locality passed to tpm_tis_prep_abort() is valid, Stefan Berger, 2019/01/21
- [Qemu-stable] [PATCH 2/4] tpm: use loop iterator to set sts data field,
Stefan Berger <=
- [Qemu-stable] [PATCH 4/4] tpm: Make sure the locality received from backend is valid, Stefan Berger, 2019/01/21
- [Qemu-stable] [PATCH 1/4] tpm: Zero-init structure to avoid uninitialized variables in valgrind log, Stefan Berger, 2019/01/21
- Re: [Qemu-stable] [Qemu-devel] [PATCH 0/4] TPM patches for stable-3.0.0 (v3.0.1), no-reply, 2019/01/31
- Re: [Qemu-stable] [Qemu-devel] [PATCH 0/4] TPM patches for stable-3.0.0 (v3.0.1), no-reply, 2019/01/31
- Re: [Qemu-stable] [Qemu-devel] [PATCH 0/4] TPM patches for stable-3.0.0 (v3.0.1), no-reply, 2019/01/31
- Re: [Qemu-stable] [Qemu-devel] [PATCH 0/4] TPM patches for stable-3.0.0 (v3.0.1), no-reply, 2019/01/31
- Re: [Qemu-stable] [Qemu-devel] [PATCH 0/4] TPM patches for stable-3.0.0 (v3.0.1), no-reply, 2019/01/31