tpm: invalid self test error message
PATCH 1/1 tpm: invalid self test error message
The driver emits invalid self test error message even though the init succeeds.
Signed-off-by Jarkko Sakkinen <[email protected]>
Fixes cae8b441fc20 ("tpm: Factor out common startup code")
--- drivers/char/tpm/tpm2-cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/char/tpm/tpm2-cmd.c +1 -2
@@ -966,7 +966,7 @@ int tpm2_auto_startup(struct tpm_chip *chip) goto out; rc =tpm2_do_selftest (chip); -if (rc !=TPM2_RC_INITIALIZE ) { +if (rc !=0 && rc !=TPM2_RC_INITIALIZE ) {dev_err (&chip->dev,"TPM self test failed\n" ); goto out; }
@@ -983,7 +983,6 @@ int tpm2_auto_startup(struct tpm_chip *chip) } } -return rc; out:if (rc >0 ) rc = -ENODEV ;
Signature · 1 line
2.7.4
Quoted 4 lines · Jarkko Sakkinen
The driver emits invalid self test error message even though the init succeeds.
Reviewed-by James Morris <[email protected]>
Signature · 5 lines
James Morris <jmorris-gx6/[email protected]> ------------------------------------------------------------------------------
Quoted 5 lines · Jarkko Sakkinen
The driver emits invalid self test error message even though the init succeeds.
Signed-off-by Jarkko Sakkinen <[email protected]>Fixes cae8b441fc20 ("tpm: Factor out common startup code")
Reviewed-by Jason Gunthorpe <[email protected]>
Reported-by Petr Vandrovec <[email protected]>
Jason