Skip to contentSkip to conversation

TPM bugfix

GIT PULL James Morris 1 participant 1 message Oct 31, 2016 TPM device driver

lore
Share & tools
lore
#0 lore raw

Please pull this fix for 4.9.

The following changes since commit 2a26d99b251b8625d27aed14e97fc10707a3a81f:

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2016-10-29 20:33:20 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git for-linus

for you to fetch changes up to befd99656c5eb765fe9d96045c4cba099fd938db:

tpm: remove invalid min length check from tpm_do_selftest() (2016-10-31 09:15:27 -0600)

----------------------------------------------------------------
Jarkko Sakkinen (1):
tpm: remove invalid min length check from tpm_do_selftest()

 drivers/char/tpm/tpm-interface.c | 3 ---
 1 file changed, 3 deletions(-)

---

commit befd99656c5eb765fe9d96045c4cba099fd938db

Author: Jarkko Sakkinen <[email protected]>
Date:   Tue Oct 4 09:49:47 2016 +0300

tpm: remove invalid min length check from tpm_do_selftest()

Removal of this check was not properly amended to the original commit.

Fixes 0c541332231e ("tpm: use tpm_pcr_read_dev() in tpm_do_selftest()")
drivers/char/tpm/tpm-interface.c +0 -3
index 8de6187..3a9149c 100644
@@ -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);