]> 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)
commit28707bf221ce6914a3e414637c8ffc4d27e9648d
tree7752bc9b7898cecc55df9eecc14f720b733f82d8
parent91f7f3d773a469deeab3808d422363138295346e
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