Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -813,9 +813,6 @@ int tpm_do_selftest(struct tpm_chip *chip)
			continue;
		}

		if (rc < TPM_HEADER_SIZE)
			return -EFAULT;

		if (rc == TPM_ERR_DISABLED || rc == TPM_ERR_DEACTIVATED) {
			dev_info(&chip->dev,
				 "TPM is disabled/deactivated (0x%X)\n", rc);