c78952
From 0816621235226952a5bd0cfd027eb97ff84df547 Mon Sep 17 00:00:00 2001
0bcec2
From: Matthew Garrett <mjg59@coreos.com>
0bcec2
Date: Tue, 29 Mar 2016 15:36:49 -0700
c78952
Subject: [PATCH 225/229] Fix event log prefix
0bcec2
0bcec2
We're not passing the prefixed version of the description to the event log.
0bcec2
Fix that.
0bcec2
0bcec2
(cherry picked from commit aab446306b8a78c741e229861c4988738cfc6426)
0bcec2
---
0bcec2
 grub-core/kern/tpm.c | 2 +-
0bcec2
 1 file changed, 1 insertion(+), 1 deletion(-)
0bcec2
0bcec2
diff --git a/grub-core/kern/tpm.c b/grub-core/kern/tpm.c
0bcec2
index cb5a812035d..e5e8fced624 100644
0bcec2
--- a/grub-core/kern/tpm.c
0bcec2
+++ b/grub-core/kern/tpm.c
0bcec2
@@ -13,7 +13,7 @@ grub_tpm_measure (unsigned char *buf, grub_size_t size, grub_uint8_t pcr,
0bcec2
   char *desc = grub_xasprintf("%s %s", kind, description);
0bcec2
   if (!desc)
0bcec2
     return GRUB_ERR_OUT_OF_MEMORY;
0bcec2
-  ret = grub_tpm_log_event(buf, size, pcr, description);
0bcec2
+  ret = grub_tpm_log_event(buf, size, pcr, desc);
0bcec2
   grub_free(desc);
0bcec2
   return ret;
0bcec2
 }
0bcec2
-- 
0bcec2
2.15.0
0bcec2