Skip to content

Commit

Permalink
tpm: use loop iterator to set sts data field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Prasad J Pandit authored and stefanberger committed Nov 14, 2018
1 parent cb968d2 commit 6a50bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/tpm/tpm_tis.c
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 6a50bb9

Please sign in to comment.