commit | c0dff1f4519e3b3c322415b822724d4207156859 | [log] [tgz] |
---|---|---|
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | Mon Apr 25 12:20:07 2016 +0300 |
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | Sat Jun 25 17:26:35 2016 +0300 |
tree | 3f2f2897be4dce9f1c5c11191dc2e4f93e5cab3c | |
parent | 422eac3f7deae34dbaffd08e03e27f37a5394a56 [diff] |
tpm: check for TPM_CHIP_FLAG_TPM2 before calling tpm2_shutdown() Fixes: 20e0152393b41 ("tpm: fix crash in tpm_tis deinitialization") Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reported-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-By: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>