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

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