]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: use tpm2_pcr_read() in tpm2_do_selftest()
authorRoberto Sassu <roberto.sassu@huawei.com>
Fri, 23 Jun 2017 13:41:57 +0000 (15:41 +0200)
committerJames Morris <james.l.morris@oracle.com>
Thu, 6 Jul 2017 23:49:26 +0000 (09:49 +1000)
commit08ab374b03ba753e6f2f41589b1b17e4c20ae866
tree7752bc9b7898cecc55df9eecc14f720b733f82d8
parentc487b5ae8822d55fe2517ae39f77f18f5952f2dd
tpm: use tpm2_pcr_read() in tpm2_do_selftest()

tpm2_do_selftest() performs a PCR read during the TPM initialization phase.
This patch replaces the PCR read code with a call to tpm2_pcr_read().

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
drivers/char/tpm/tpm2-cmd.c