tpm: fix invalid return value in pubek_show()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 4 Nov 2018 10:39:02 +0000 (12:39 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:47:10 +0000 (09:47 +0200)
commitc628610087d4dd45015dde53e13397fcad4ad95a
tree869f9b00c804df1b8c5c11b9af7930e3c7a55b90
parent412eb585587a1dc43c9622db79de9663b6c4c238
tpm: fix invalid return value in pubek_show()

Return zero when tpm_buf_init() fails as we do for other functions in
tpm-sysfs.c.

Fixes: da379f3c1db0c ("tpm: migrate pubek_show to struct tpm_buf")
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-sysfs.c