Skip to content
Commit 3d785d73 authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Jarkko Sakkinen
Browse files

char: tpm: fix error return code in tpm_cr50_i2c_tis_recv()



Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 3a253caa ("char: tpm: add i2c driver for cr50")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
parent 9d53913f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment