]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: trusted: allow trusted.ko to initialize w/o a TPM
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 25 Mar 2019 14:43:10 +0000 (16:43 +0200)
committerJames Morris <james.morris@microsoft.com>
Mon, 8 Apr 2019 22:58:53 +0000 (15:58 -0700)
commit403869416ab01a4e6c7948b4de88c6aa812bf234
tree83e56f99be0498417fdca693ea12c54a2ba37ccb
parenteef82eace32232ede17342716947fdaabce893c7
KEYS: trusted: allow trusted.ko to initialize w/o a TPM

Allow trusted.ko to initialize w/o a TPM. This commit also adds checks
to the exported functions to fail when a TPM is not available.

Fixes: a6b46cac22a6 ("KEYS: trusted: explicitly use tpm_chip structure...")
Cc: James Morris <jmorris@namei.org>
Reported-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/keys/trusted.c