Skip to content
Commit 9f0b5356 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent a986216e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment