Skip to contentSkip to conversation

tpm-tis: set selftest flag on all localities

PATCH In review Marc-André Lureau 2 participants 2 messages Feb 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm-tis: set selftest flag on all localities

Set the flag on all localities, as the original commit fd859081453f94c3cbd652 intended to.

---
 hw/tpm/tpm_tis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/tpm/tpm_tis.c +1 -1
index a6440fef91..b3c2114bdd 100644
@@ -398,7 +398,7 @@ static void tpm_tis_receive_cb(TPMState *s, uint8_t locty,
 
     if (is_selftest_done) {
         for (l = 0; l < TPM_TIS_NUM_LOCALITIES; l++) {
-            tis->loc[locty].sts |= TPM_TIS_STS_SELFTEST_DONE;
+            tis->loc[l].sts |= TPM_TIS_STS_SELFTEST_DONE;
         }
     }
 
Signature · 1 line
2.12.0.rc2.3.gc93709801
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Marc-André Lureau

Set the flag on all localities, as the original commit fd859081453f94c3cbd652 intended to.

Quoted 18 lines
---
 hw/tpm/tpm_tis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/tpm/tpm_tis.c +1 -1
index a6440fef91..b3c2114bdd 100644
@@ -398,7 +398,7 @@ static void tpm_tis_receive_cb(TPMState *s, uint8_t locty,
 
     if (is_selftest_done) {
         for (l = 0; l < TPM_TIS_NUM_LOCALITIES; l++) {
-            tis->loc[locty].sts |= TPM_TIS_STS_SELFTEST_DONE;
+            tis->loc[l].sts |= TPM_TIS_STS_SELFTEST_DONE;
         }
     }