diff options
author | Simon Glass <sjg@chromium.org> | 2021-07-18 14:18:05 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-08-01 09:05:24 -0600 |
commit | 9f0b53564f035743a2ce60636cadd17c97937dee (patch) | |
tree | d1df2ae2383a02c0f3313bdd4bc43b1e612708df /test | |
parent | a986216e348153705e0a019afc95da65baa1fff0 (diff) | |
download | u-boot-9f0b53564f035743a2ce60636cadd17c97937dee.tar.gz |
sandbox: tpm: Correct handling of SANDBOX_TPM_PCR_NB
This is the number of PCRs, so the current check is off by one. Also the
map itself should not be checked, just the resulting pcr_index, to avoid
confusing people who read the code.
Fix these problems.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions