]> git.baikalelectronics.ru Git - 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)
commit950159854c743ab40295c27208ead832b71581a2
tree5ccd8ecaaae93054e587293bf2ac33244f922a02
parent2687f7c912b0054b21635105b2a1f42110077117
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