diff options
author | Prasad J Pandit <pjp@fedoraproject.org> | 2018-11-06 10:51:44 +0530 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2018-11-14 15:47:24 -0500 |
commit | 6a50bb98f24929c9fc69e9197eb21c142e061fbd (patch) | |
tree | 1fbffb9061f2c17a7ad46e8268689aaf8edcb093 /hw/tpm | |
parent | cb968d275c145467c8b385a3618a207ec111eab1 (diff) |
tpm: use loop iterator to set sts data field
When TIS request is done, set 'sts' data field across all localities.
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Diffstat (limited to 'hw/tpm')
-rw-r--r-- | hw/tpm/tpm_tis.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |