commit | 7fce1d9661b29e3dab05b862e95c6cd35d822536 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | Thu Nov 12 10:14:45 2015 -0500 |
committer | Kevin O'Connor <kevin@koconnor.net> | Thu Nov 19 08:53:05 2015 -0500 |
tree | 8ecfdcc8bfa9265fddb0e2108e90c800fc9ed1a6 | |
parent | 964c77462b5ab7acd1d4c123c1c13f633ab24b1a [diff] |
tpm: Temporarily deactivate the TPM in case of failure Temporarily deactivate the TPM in case of failure of TPM commands and failure to log measurements. Introduce the tpm_set_failure() function replacing occurrences of 'tpm_state.tpm_working = 0' and invoke it in error paths. Temporarily deactivating the TPM means that it will be active again upon reboot. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>