瀏覽代碼

[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>
Kylene Jo Hall 19 年之前
父節點
當前提交
7c69a47f1b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/char/tpm/tpm_bios.c

+ 1 - 0
drivers/char/tpm/tpm_bios.c

@@ -120,6 +120,7 @@ static const char* tcpa_pc_event_id_strings[] = {
 	"S-CRTM Version",
 	"S-CRTM Contents",
 	"S-CRTM POST Contents",
+	"POST Contents",
 };
 
 /* returns pointer to start of pos. entry of tcg log */