diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2016-09-28 18:59:39 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-09-30 03:08:22 +0200 |
commit | 494d398ae43126aec611238a9d30c7b0020cb251 (patch) | |
tree | b6e241b5eefd74cda9d617b3b657209fd7a87eb2 /src | |
parent | d677d9cedd4cf2e0022314ce79f893f6d797e645 (diff) | |
download | coreboot-494d398ae43126aec611238a9d30c7b0020cb251.tar.xz |
vboot: clear tpm when required
Function which invoked when TPM clear is requested was left empty,
this patch fixes it.
BRANCH=gru
BUG=chrome-os-partner:57411
TEST=verified on a chromeos device that tpm is in fact cleared when
CLEAR_TPM_OWNER_REQUEST is set by userland.
Change-Id: I4370792afd512309ecf7f4961ed4d44a04a3e2aa
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://review.coreboot.org/16805
Tested-by: build bot (Jenkins)
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vboot/secdata_tpm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vboot/secdata_tpm.c b/src/vboot/secdata_tpm.c index a51e5d6d55..76b90abee6 100644 --- a/src/vboot/secdata_tpm.c +++ b/src/vboot/secdata_tpm.c @@ -154,6 +154,7 @@ static uint32_t _factory_initialize_tpm(struct vb2_context *ctx) uint32_t tpm_clear_and_reenable(void) { VBDEBUG("TPM: Clear and re-enable\n"); + RETURN_ON_FAILURE(tlcl_force_clear()); return TPM_SUCCESS; } |