author | Rajiv Andrade
<srajiv@linux.vnet.ibm.com> 2009-09-30 15:26:55 UTC |
committer | James Morris
<jmorris@namei.org> 2009-10-09 01:18:18 UTC |
parent | 36a07902c2134649c4af7f07980413ffb1a56085 |
drivers/char/tpm/tpm.c | +1 | -2 |
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index 45d58002b06..47c2d276345 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) cmd.header.in = pcrread_header; cmd.params.pcrread_in.pcr_idx = cpu_to_be32(pcr_idx); - BUG_ON(cmd.header.in.length > READ_PCR_RESULT_SIZE); - rc = transmit_cmd(chip, &cmd, cmd.header.in.length, + rc = transmit_cmd(chip, &cmd, READ_PCR_RESULT_SIZE, "attempting to read a pcr value"); if (rc == 0)