Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: d8d74ea3c002 ("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>

authored by

Xiu Jianfeng and committed by
Jarkko Sakkinen
d0dc1a71 80b8a397

+1
+1
drivers/char/tpm/tpm_ibmvtpm.c
··· 681 681 if (!wait_event_timeout(ibmvtpm->crq_queue.wq, 682 682 ibmvtpm->rtce_buf != NULL, 683 683 HZ)) { 684 + rc = -ENODEV; 684 685 dev_err(dev, "CRQ response timed out\n"); 685 686 goto init_irq_cleanup; 686 687 }