]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tpm: replace TPM_TRANSMIT_RAW with TPM_TRANSMIT_NESTED
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 29 Jun 2018 12:24:50 +0000 (15:24 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 28 Jul 2018 14:03:11 +0000 (17:03 +0300)
commit58bac8cc3010ccb845572a3512fc16c9aaa5e50e
tree5ccd8ecaaae93054e587293bf2ac33244f922a02
parenteccc9bb844838b6b7a9691b31747416c4c34a83f
tpm: replace TPM_TRANSMIT_RAW with TPM_TRANSMIT_NESTED

As TPM_TRANSMIT_RAW always requires also not to take locks for obvious
reasons (deadlock), this commit renames the flag as TPM_TRANSMIT_NESTED
and prevents taking tpm_mutex when the flag is given to tpm_transmit().

Suggested-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-space.c
drivers/char/tpm/tpm_vtpm_proxy.c