Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264076
b: refs/heads/master
c: 6b07d30
h: refs/heads/master
v: v3
  • Loading branch information
Peter Huewe authored and James Morris committed Sep 22, 2011
1 parent 1c258a8 commit 653ea3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de69113ec1896443c732e8b812e8005fb44eeeeb
refs/heads/master: 6b07d30aca7e52f2881b8c8c20c8a2cd28e8b3d3
3 changes: 3 additions & 0 deletions trunk/drivers/char/tpm/tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,
u32 count, ordinal;
unsigned long stop;

if (bufsiz > TPM_BUFSIZE)
bufsiz = TPM_BUFSIZE;

count = be32_to_cpu(*((__be32 *) (buf + 2)));
ordinal = be32_to_cpu(*((__be32 *) (buf + 6)));
if (count == 0)
Expand Down

0 comments on commit 653ea3d

Please sign in to comment.