]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm: don't print error message in tpm_transmit_cmd when tpm still testing
authorJerry Snitselaar <jsnitsel@redhat.com>
Tue, 29 Jan 2019 18:59:11 +0000 (11:59 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:47:01 +0000 (09:47 +0200)
commit08a8112ad9c17ec3d78363bf7123df6598f09bc2
treeaa64d5eddb2fce67add2aa8800545ba6fb216191
parentc8faabfc6f48009fb0d9ad4203aecfa569e5ff8d
tpm: don't print error message in tpm_transmit_cmd when tpm still testing

Currently tpm_transmit_cmd will print an error message if the tpm
returns something other than TPM2_RC_SUCCESS. This means that if the
tpm returns that it is testing an error message will be printed, and
this can cause confusion for the end user. So avoid printing the error
message if TPM2_RC_TESTING is the return code.

Cc: Peter Huewe <peterhuewe@gmx.de>
Cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-interface.c