commit | 05917ac0f685e441dc30c1668b95fb3c49410353 | [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 | 3220cb05b1ffb0a64157f3f266d304be2a0c1daa [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>