Skip to content

Commit ebbbffa

Browse files
Xiu Jianfenggregkh
Xiu Jianfeng
authored andcommitted
tpm: ibmvtpm: Correct the return value in tpm_ibmvtpm_probe()
commit d0dc1a7 upstream. Currently it returns zero when CRQ response timed out, it should return an error code instead. Fixes: d8d74ea ("tpm: ibmvtpm: Wait for buffer to be set before proceeding") Signed-off-by: Xiu Jianfeng <[email protected]> Reviewed-by: Stefan Berger <[email protected]> Acked-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5933a19 commit ebbbffa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: drivers/char/tpm/tpm_ibmvtpm.c

+1
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev,
683683
if (!wait_event_timeout(ibmvtpm->crq_queue.wq,
684684
ibmvtpm->rtce_buf != NULL,
685685
HZ)) {
686+
rc = -ENODEV;
686687
dev_err(dev, "CRQ response timed out\n");
687688
goto init_irq_cleanup;
688689
}

0 commit comments

Comments
 (0)