arm64: set correct length of device path end entry

The length of the Device Path End entry in the grub_linux_boot()
function was incorrectly set to 0. This triggers an assert failure
in debug builds of Tianocore.

Set it to sizeof (grub_efi_device_path_t).

Bug-Ubuntu: http://bugs.launchpad.net/bugs/1476882
Origin: http://git.savannah.gnu.org/cgit/grub.git/commit/grub-core/loader/arm64/linux.c?id=4d21c1019904598a991e847eef049c65f9c49bd9
Last-Update: 2015-07-22

Patch-Name: arm64-set-correct-length-of-device-path-end-entry.patch
This commit is contained in:
Leif Lindholm 2014-01-07 17:52:50 +00:00 committed by Colin Watson
parent 43a4b86bf4
commit 94e0b1d457

View File

@ -268,7 +268,7 @@ grub_linux_boot (void)
mempath[1].header.type = GRUB_EFI_END_DEVICE_PATH_TYPE;
mempath[1].header.subtype = GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE;
mempath[1].header.length = 0;
mempath[1].header.length = sizeof (grub_efi_device_path_t);
b = grub_efi_system_table->boot_services;
status = b->load_image (0, grub_efi_image_handle,