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

Commit 6eb3c604 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull TPM fix from James Morris.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
  tpm: remove invalid min length check from tpm_do_selftest()
parents 41ec793d befd9965
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -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);