diff options
-rw-r--r-- | drivers/char/tpm/tpm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index aeafac5bde8c..f06bb37defb1 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char/tpm/tpm.c | |||
@@ -696,8 +696,7 @@ int __tpm_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) | |||
696 | 696 | ||
697 | cmd.header.in = pcrread_header; | 697 | cmd.header.in = pcrread_header; |
698 | cmd.params.pcrread_in.pcr_idx = cpu_to_be32(pcr_idx); | 698 | cmd.params.pcrread_in.pcr_idx = cpu_to_be32(pcr_idx); |
699 | BUG_ON(cmd.header.in.length > READ_PCR_RESULT_SIZE); | 699 | rc = transmit_cmd(chip, &cmd, READ_PCR_RESULT_SIZE, |
700 | rc = transmit_cmd(chip, &cmd, cmd.header.in.length, | ||
701 | "attempting to read a pcr value"); | 700 | "attempting to read a pcr value"); |
702 | 701 | ||
703 | if (rc == 0) | 702 | if (rc == 0) |