diff options
author | Kylene Jo Hall <kjhall@us.ibm.com> | 2006-04-22 05:36:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-22 12:19:53 -0400 |
commit | 7c69a47f1badf40dfa2febac71df98d32b1b56d7 (patch) | |
tree | 7f37cf8d9120234c00e8dfaea54b5df064c9e1d0 /drivers/char/tpm/tpm_bios.c | |
parent | 59e89f3a091d5cf93f4b176aedcfded61ece5252 (diff) |
[PATCH] tpm: fix missing string
A string corresponding to the tcpa_pc_event_id POST_CONTENTS was missing
causing an overflow bug when access was attempted in the get_event_name
function.
This bug was found by Coverity.
Signed-off-by: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm/tpm_bios.c')
-rw-r--r-- | drivers/char/tpm/tpm_bios.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm_bios.c b/drivers/char/tpm/tpm_bios.c index 0549e2a35df8..5bcbaef53798 100644 --- a/drivers/char/tpm/tpm_bios.c +++ b/drivers/char/tpm/tpm_bios.c | |||
@@ -120,6 +120,7 @@ static const char* tcpa_pc_event_id_strings[] = { | |||
120 | "S-CRTM Version", | 120 | "S-CRTM Version", |
121 | "S-CRTM Contents", | 121 | "S-CRTM Contents", |
122 | "S-CRTM POST Contents", | 122 | "S-CRTM POST Contents", |
123 | "POST Contents", | ||
123 | }; | 124 | }; |
124 | 125 | ||
125 | /* returns pointer to start of pos. entry of tcg log */ | 126 | /* returns pointer to start of pos. entry of tcg log */ |