diff options
author | Zhihao Cheng <[email protected]> | 2021-04-09 09:12:01 +0800 |
---|---|---|
committer | Jarkko Sakkinen <[email protected]> | 2021-04-14 16:30:30 +0300 |
commit | 3d785d73b4c1014839d9f9af0ee526f8d5706a73 (patch) | |
tree | dbef008143b3b83b09e9ca4cc66bdb713868030a /lib/pm-notifier-error-inject.c | |
parent | 9d53913fad3ee800d0067c39881a86a5eb739ae3 (diff) |
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: 3a253caaad11 ("char: tpm: add i2c driver for cr50")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zhihao Cheng <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions