commit | 9f0b53564f035743a2ce60636cadd17c97937dee | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Jul 18 14:18:05 2021 -0600 |
committer | Simon Glass <sjg@chromium.org> | Sun Aug 01 09:05:24 2021 -0600 |
tree | d1df2ae2383a02c0f3313bdd4bc43b1e612708df | |
parent | a986216e348153705e0a019afc95da65baa1fff0 [diff] |
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>