Skip to content

Commit befd996

Browse files
Jarkko SakkinenJames Morris
authored andcommitted
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: 0c54133 ("tpm: use tpm_pcr_read_dev() in tpm_do_selftest()") Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: James Morris <james.l.morris@oracle.com>
1 parent 2a26d99 commit befd996

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)