tpm: print tpm2_commit_space() error inside tpm2_commit_space()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 3 Nov 2018 16:36:38 +0000 (18:36 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:47:31 +0000 (09:47 +0200)
commitaff0c20bfe59e0895c75631e2639bc54efae8007
tree416e14e2c0eb75655670177f8ea78cea2b3a8560
parent41484674da31cb94ee35da5e5bf7038f48b8eb9d
tpm: print tpm2_commit_space() error inside tpm2_commit_space()

The error logging for tpm2_commit_space() is in a wrong place. This
commit moves it inside that function.

Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: Alexander Steffen <Alexander.Steffen@infineon.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm2-space.c