Commit befd9965 authored by Jarkko Sakkinen's avatar Jarkko Sakkinen Committed by James Morris

tpm: remove invalid min length check from tpm_do_selftest()

Removal of this check was not properly amended to the original commit.

Cc: stable@vger.kernel.org
Fixes: 0c541332 ("tpm: use tpm_pcr_read_dev() in tpm_do_selftest()")
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
parent 2a26d99b
...@@ -813,9 +813,6 @@ int tpm_do_selftest(struct tpm_chip *chip) ...@@ -813,9 +813,6 @@ int tpm_do_selftest(struct tpm_chip *chip)
continue; continue;
} }
if (rc < TPM_HEADER_SIZE)
return -EFAULT;
if (rc == TPM_ERR_DISABLED || rc == TPM_ERR_DEACTIVATED) { if (rc == TPM_ERR_DISABLED || rc == TPM_ERR_DEACTIVATED) {
dev_info(&chip->dev, dev_info(&chip->dev,
"TPM is disabled/deactivated (0x%X)\n", rc); "TPM is disabled/deactivated (0x%X)\n", rc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment