diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-09-02 18:33:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-09-02 18:33:54 -0400 |
commit | 0ddc9e5a112489e1703143ad75b44fc57f9ac25a (patch) | |
tree | cff655135a8b06d9b36293b0f83e8c946b7db747 | |
parent | 601b58699440b421756e5a2b8f3f2211879dd94d (diff) | |
parent | 4a29b3484f857ff350f203a2d9bf3b428c9e0bf2 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull TPM bugfix from James Morris.
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
tpm: invalid self test error message
-rw-r--r-- | drivers/char/tpm/tpm2-cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm2-cmd.c index 08c7e23ed535..0c75c3f1689f 100644 --- a/drivers/char/tpm/tpm2-cmd.c +++ b/drivers/char/tpm/tpm2-cmd.c | |||
@@ -957,7 +957,7 @@ int tpm2_auto_startup(struct tpm_chip *chip) | |||
957 | goto out; | 957 | goto out; |
958 | 958 | ||
959 | rc = tpm2_do_selftest(chip); | 959 | rc = tpm2_do_selftest(chip); |
960 | if (rc != TPM2_RC_INITIALIZE) { | 960 | if (rc != 0 && rc != TPM2_RC_INITIALIZE) { |
961 | dev_err(&chip->dev, "TPM self test failed\n"); | 961 | dev_err(&chip->dev, "TPM self test failed\n"); |
962 | goto out; | 962 | goto out; |
963 | } | 963 | } |
@@ -974,7 +974,6 @@ int tpm2_auto_startup(struct tpm_chip *chip) | |||
974 | } | 974 | } |
975 | } | 975 | } |
976 | 976 | ||
977 | return rc; | ||
978 | out: | 977 | out: |
979 | if (rc > 0) | 978 | if (rc > 0) |
980 | rc = -ENODEV; | 979 | rc = -ENODEV; |