tpm: Don't make log failures fatal
authorMatthew Garrett <matthewgarrett@google.com>
Thu, 2 Jan 2020 21:55:18 +0000 (13:55 -0800)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 13 Mar 2020 01:53:15 +0000 (03:53 +0200)
commit805fa88e0780b7ce1cc9b649dd91a0a7164c6eb4
tree7f5b341b0216f6a1185b327e7838434b38b9526f
parent0d81a3f29c0afb18ba2b1275dcccf21e0dd4da38
tpm: Don't make log failures fatal

If a TPM is in disabled state, it's reasonable for it to have an empty
log. Bailing out of probe in this case means that the PPI interface
isn't available, so there's no way to then enable the TPM from the OS.
In general it seems reasonable to ignore log errors - they shouldn't
interfere with any other TPM functionality.

Signed-off-by: Matthew Garrett <matthewgarrett@google.com>
Cc: stable@vger.kernel.org # 4.19.x
Reviewed-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/eventlog/common.c
drivers/char/tpm/tpm-chip.c
drivers/char/tpm/tpm.h