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