]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tpm: remove TPM_TRANSMIT_UNLOCKED flag
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 4 Nov 2018 18:01:42 +0000 (20:01 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:48:28 +0000 (09:48 +0200)
commit2f257402ee981720d65080b1e3ce19f693f5c9c3
treeb4617b3fdc6682ba129f4f46bc8c21308d912030
parent2677ca98ae377517930c183248221f69f771c921
tpm: remove TPM_TRANSMIT_UNLOCKED flag

Added locking as part of tpm_try_get_ops() and tpm_put_ops() as they are
anyway used in most of the call sites except in tpmrm_release() where we
take the locks manually.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: Alexander Steffen <Alexander.Steffen@infineon.com>
drivers/char/tpm/tpm-chip.c
drivers/char/tpm/tpm-dev-common.c
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-cmd.c
drivers/char/tpm/tpm2-space.c