diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2016-07-12 14:16:11 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2016-07-12 21:38:14 +0000 |
commit | 681c88deae9d05cf4b7ab64f040f4b5ca51d1cdf (patch) | |
tree | ae112728c055ecae21099cf5adfb1aa18d9f619d | |
parent | 61e797b420b87711c6d61244587c03d28290656f (diff) | |
download | chrome-ec-681c88deae9d05cf4b7ab64f040f4b5ca51d1cdf.tar.gz |
tpm: use correct key ladder step return value.
Return logic of the hw_key_ladder_step() was inadvertently reverted,
this patch fixes the problem.
BRANCH=ToT
BUG=chrome-os-partner:43025
TEST=certificate installation process completes successfully
Change-Id: I3c2360359b3fcf66c4b980e577e55caf5217b576
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/359618
Reviewed-by: Nagendra Modadugu <ngm@google.com>
-rw-r--r-- | board/cr50/tpm2/manufacture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cr50/tpm2/manufacture.c b/board/cr50/tpm2/manufacture.c index b39ec4e863..c34cb30f9a 100644 --- a/board/cr50/tpm2/manufacture.c +++ b/board/cr50/tpm2/manufacture.c @@ -274,7 +274,7 @@ static uint32_t hw_key_ladder_step(uint32_t cert) GREG32(KEYMGR, SHA_ITOP) = 0; /* clear status */ - return !GREG32(KEYMGR, HKEY_ERR_FLAGS); + return !!GREG32(KEYMGR, HKEY_ERR_FLAGS); } |