Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 0c541332231e ("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>

authored by

Jarkko Sakkinen and committed by
James Morris
befd9965 2a26d99b

-3
-3
drivers/char/tpm/tpm-interface.c
··· 813 813 continue; 814 814 } 815 815 816 - if (rc < TPM_HEADER_SIZE) 817 - return -EFAULT; 818 - 819 816 if (rc == TPM_ERR_DISABLED || rc == TPM_ERR_DEACTIVATED) { 820 817 dev_info(&chip->dev, 821 818 "TPM is disabled/deactivated (0x%X)\n", rc);