OpenCloudOS-Kernel/drivers/char/tpm/eventlog
Stefan Berger 9716ac65ef tpm: vtpm_proxy: Avoid reading host log when using a virtual device
Avoid allocating memory and reading the host log when a virtual device
is used since this log is of no use to that driver. A virtual
device can be identified through the flag TPM_CHIP_FLAG_VIRTUAL, which
is only set for the tpm_vtpm_proxy driver.

Cc: stable@vger.kernel.org
Fixes: 6f99612e25 ("tpm: Proxy driver for supporting multiple emulated TPMs")
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
2021-04-14 16:30:30 +03:00
..
acpi.c tpm: acpi: Check eventlog signature before using it 2021-04-14 16:30:30 +03:00
common.c tpm: vtpm_proxy: Avoid reading host log when using a virtual device 2021-04-14 16:30:30 +03:00
common.h tpm: Move eventlog declarations to its own header 2018-05-09 14:45:46 +03:00
efi.c tpm: efi: Use local variable for calculating final log size 2021-04-14 16:30:29 +03:00
of.c tpm: of: Handle IBM,vtpm20 case when getting log parameters 2020-03-13 17:31:26 +02:00
tpm1.c tpm: Fix fall-through warnings for Clang 2021-02-16 10:40:27 +02:00
tpm2.c tpm: eventlog: Replace zero-length array with flexible-array member 2020-05-22 18:50:12 +03:00