diff options
author | Jarkko Sakkinen | 2016-10-04 08:49:47 +0200 |
---|---|---|
committer | James Morris | 2016-10-31 16:15:27 +0100 |
commit | befd99656c5eb765fe9d96045c4cba099fd938db (patch) | |
tree | ccebd35f7bb538a834491d7ceb8f2fd713e89499 | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | kernel-qcow2-linux-befd99656c5eb765fe9d96045c4cba099fd938db.tar.gz kernel-qcow2-linux-befd99656c5eb765fe9d96045c4cba099fd938db.tar.xz kernel-qcow2-linux-befd99656c5eb765fe9d96045c4cba099fd938db.zip |
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>
-rw-r--r-- | drivers/char/tpm/tpm-interface.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c index 8de61876f633..3a9149cf0110 100644 --- a/drivers/char/tpm/tpm-interface.c +++ b/drivers/char/tpm/tpm-interface.c @@ -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); |