Skip to content

Commit 6eb3c60

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
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()
2 parents 41ec793 + befd996 commit 6eb3c60

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/char/tpm/tpm-interface.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,6 @@ int tpm_do_selftest(struct tpm_chip *chip)
813813
continue;
814814
}
815815

816-
if (rc < TPM_HEADER_SIZE)
817-
return -EFAULT;
818-
819816
if (rc == TPM_ERR_DISABLED || rc == TPM_ERR_DEACTIVATED) {
820817
dev_info(&chip->dev,
821818
"TPM is disabled/deactivated (0x%X)\n", rc);

0 commit comments

Comments
 (0)