diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2021-11-06 19:42:04 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2022-01-09 01:18:41 +0300 |
commit | e96d52822f5ac0a25de78f95cd23421bcbc93584 (patch) | |
tree | b7033647bb1bfd1e547d57f2f90d05b6136d2bc2 /crypto/asymmetric_keys/x509_cert_parser.c | |
parent | d2704808f24fbc869ba54df82d4b1af49ab496e2 (diff) | |
download | linux-e96d52822f5ac0a25de78f95cd23421bcbc93584.tar.xz |
tpm_tis: Fix an error handling path in 'tpm_tis_core_init()'
Commit 79ca6f74dae0 ("tpm: fix Atmel TPM crash caused by too frequent
queries") has moved some code around without updating the error handling
path.
This is now pointless to 'goto out_err' when neither 'clk_enable()' nor
'ioremap()' have been called yet.
Make a direct return instead to avoid undoing things that have not been
done.
Fixes: 79ca6f74dae0 ("tpm: fix Atmel TPM crash caused by too frequent queries")
Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'crypto/asymmetric_keys/x509_cert_parser.c')
0 files changed, 0 insertions, 0 deletions