summaryrefslogtreecommitdiff
path: root/drivers/char/tpm/tpm_tis.c
diff options
context:
space:
mode:
authorRajiv Andrade <srajiv@linux.vnet.ibm.com>2012-04-24 17:38:17 -0300
committerRajiv Andrade <srajiv@linux.vnet.ibm.com>2012-06-12 18:53:49 -0300
commit24ebe6670de3d1f0dca11c9eb372134c7ab05503 (patch)
treef6cc7d88cc239a7ac49ba8ea94efa28f98430803 /drivers/char/tpm/tpm_tis.c
parentcbb2d5e459f4e10b3f1d11c23c31aa5d7c21e34c (diff)
TPM: chip disabled state erronously being reported as error
tpm_do_selftest() attempts to read a PCR in order to decide if one can rely on the TPM being used or not. The function that's used by __tpm_pcr_read() does not expect the TPM to be disabled or deactivated, and if so, reports an error. It's fine if the TPM returns this error when trying to use it for the first time after a power cycle, but it's definitely not if it already returned success for a previous attempt to read one of its PCRs. The tpm_do_selftest() was modified so that the driver only reports this return code as an error when it really is. Reported-and-tested-by: Paul Bolle <pebolle@tiscali.nl> Cc: Stable <stable@vger.kernel.org> Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/char/tpm/tpm_tis.c')
0 files changed, 0 insertions, 0 deletions