]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm: vtpm_proxy: Suppress error logging when in closed state
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 May 2017 22:29:13 +0000 (18:29 -0400)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 13 Jun 2017 19:02:09 +0000 (22:02 +0300)
commit402149c6470d9562fe6891e0165df7f5f6bff7a7
treeb03b166b161f20cae1a889deb64ed9f734e9a305
parent5e9fefd26b47205e423b23c3f0a41b068c84fa1d
tpm: vtpm_proxy: Suppress error logging when in closed state

Suppress the error logging when the core TPM driver sends commands
to the VTPM proxy driver and -EPIPE is returned in case the VTPM
proxy driver is 'closed' (closed anonymous file descriptor).  This
error code is only returned by the send function and by tpm_transmit
when the VTPM proxy driver is being used.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm2-cmd.c