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