Blame SOURCES/0014-arm64-set-correct-length-of-device-path-end-entry.patch

d41074
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a85e8e
From: Leif Lindholm <leif.lindholm@linaro.org>
a85e8e
Date: Tue, 7 Jan 2014 17:52:50 +0000
d41074
Subject: [PATCH] arm64: set correct length of device path end entry
a85e8e
a85e8e
The length of the Device Path End entry in the grub_linux_boot()
a85e8e
function was incorrectly set to 0. This triggers an assert failure
a85e8e
in debug builds of Tianocore.
a85e8e
a85e8e
Set it to sizeof (grub_efi_device_path_t).
a85e8e
---
a85e8e
 grub-core/loader/arm64/linux.c | 2 +-
d41074
 ChangeLog                      | 4 ++++
a85e8e
 2 files changed, 5 insertions(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c
d41074
index 9d15aad625e..75ad871a81c 100644
a85e8e
--- a/grub-core/loader/arm64/linux.c
a85e8e
+++ b/grub-core/loader/arm64/linux.c
a85e8e
@@ -268,7 +268,7 @@ grub_linux_boot (void)
a85e8e
 
a85e8e
   mempath[1].header.type = GRUB_EFI_END_DEVICE_PATH_TYPE;
a85e8e
   mempath[1].header.subtype = GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE;
a85e8e
-  mempath[1].header.length = 0;
a85e8e
+  mempath[1].header.length = sizeof (grub_efi_device_path_t);
a85e8e
 
a85e8e
   b = grub_efi_system_table->boot_services;
a85e8e
   status = b->load_image (0, grub_efi_image_handle,
d41074
diff --git a/ChangeLog b/ChangeLog
d41074
index 0b9fa05b2a0..4ec5517bded 100644
d41074
--- a/ChangeLog
d41074
+++ b/ChangeLog
d41074
@@ -1,3 +1,7 @@
d41074
+2014-01-07  Leif Lindholm <leif.lindholm@linaro.org>
d41074
+
d41074
+	* grub-core/loader/arm64/linux.c: correctly set device path end length.
d41074
+
d41074
 2014-01-07  Andrey Borzenkov <arvidjaar@gmail.com>
d41074
 
d41074
 	* util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on