]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tpm: vtpm_proxy: Avoid reading host log when using a virtual device
authorStefan Berger <stefanb@linux.ibm.com>
Wed, 10 Mar 2021 22:19:16 +0000 (17:19 -0500)
committerJarkko Sakkinen <jarkko@kernel.org>
Fri, 9 Apr 2021 05:58:30 +0000 (08:58 +0300)
commitf47e81ef4f773f96c7152f9d1127e4c4f85b7e62
tree59dada7f430de45f23890566db3cdbde12102efe
parentac3a51d1191f63602ba350e733fa3b560a3a35b4
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: 6f99612e2500 ("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>
drivers/char/tpm/eventlog/common.c