]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: ibmvtpm: Correct the return value in tpm_ibmvtpm_probe()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Fri, 18 Mar 2022 06:02:01 +0000 (14:02 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 23 May 2022 15:47:49 +0000 (18:47 +0300)
commit8d1b33b1261105ec5ad1268c98900cb8ad87f245
treeaf5bf4c6e7066ae8884942a00426f2ffa2d0ac4c
parentdd9efacf94592f8757a934ff06f433cc092b37a4
tpm: ibmvtpm: Correct the return value in tpm_ibmvtpm_probe()

Currently it returns zero when CRQ response timed out, it should return
an error code instead.

Fixes: f95a73c5716b ("tpm: ibmvtpm: Wait for buffer to be set before proceeding")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_ibmvtpm.c