Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3071
b: refs/heads/master
c: 34d6e07
h: refs/heads/master
i:
  3069: 005f5bb
  3067: a8f7456
  3063: 32a5330
  3055: 43204a2
  3039: 0490899
  3007: 4a31e59
  2943: 08c1478
  2815: 17249d3
  2559: 6ce3c72
  2047: e100904
v: v3
  • Loading branch information
Kylene Jo Hall authored and Linus Torvalds committed Jun 24, 2005
1 parent 5550317 commit 13184a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e234bc970451edc4021637fe2979b887da873f9a
refs/heads/master: 34d6e07570ef74b965131452a862b13dfa779188
10 changes: 6 additions & 4 deletions trunk/drivers/char/tpm/tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ ssize_t tpm_show_pcrs(struct device *dev, struct device_attribute *attr,
memcpy(data, cap_pcr, sizeof(cap_pcr));
if ((len = tpm_transmit(chip, data, sizeof(data)))
< CAP_PCR_RESULT_SIZE) {
dev_err(&chip->pci_dev->dev, "A TPM error (%d) occurred "
dev_dbg(&chip->pci_dev->dev, "A TPM error (%d) occurred "
"attempting to determine the number of PCRS\n",
be32_to_cpu(*((__be32 *) (data + 6))));
return 0;
Expand All @@ -161,7 +161,7 @@ ssize_t tpm_show_pcrs(struct device *dev, struct device_attribute *attr,
memcpy(data + 10, &index, 4);
if ((len = tpm_transmit(chip, data, sizeof(data)))
< READ_PCR_RESULT_SIZE){
dev_err(&chip->pci_dev->dev, "A TPM error (%d) occurred"
dev_dbg(&chip->pci_dev->dev, "A TPM error (%d) occurred"
" attempting to read PCR %d of %d\n",
be32_to_cpu(*((__be32 *) (data + 6))), i, num_pcrs);
goto out;
Expand Down Expand Up @@ -205,10 +205,11 @@ ssize_t tpm_show_pubek(struct device *dev, struct device_attribute *attr,

if ((len = tpm_transmit(chip, data, READ_PUBEK_RESULT_SIZE)) <
READ_PUBEK_RESULT_SIZE) {
dev_err(&chip->pci_dev->dev, "A TPM error (%d) occurred "
dev_dbg(&chip->pci_dev->dev, "A TPM error (%d) occurred "
"attempting to read the PUBEK\n",
be32_to_cpu(*((__be32 *) (data + 6))));
return 0;
rc = 0;
goto out;
}

/*
Expand Down Expand Up @@ -240,6 +241,7 @@ ssize_t tpm_show_pubek(struct device *dev, struct device_attribute *attr,
str += sprintf(str, "\n");
}
rc = str - buf;
out:
kfree(data);
return rc;
}
Expand Down

0 comments on commit 13184a5

Please sign in to comment.