[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] arm64: set correct length of device path end entry
From: |
Leif Lindholm |
Subject: |
[patch] arm64: set correct length of device path end entry |
Date: |
Tue, 7 Jan 2014 17:06:08 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
The length of the Device Path End entry in the grub_linux_boot()
funtcion is incorrectly set to 0. This triggers an assert failure
in debug builds of Tianocore.
The correct length is 4 bytes (1 byte type, 1 byte subtype,
2 bytes length).
Reported-by: Mark Salter <address@hidden>
diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/arm64/linux.c
index 9d15aad..7c9bc2b 100644
--- a/grub-core/loader/arm64/linux.c
+++ b/grub-core/loader/arm64/linux.c
@@ -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 = 4;
b = grub_efi_system_table->boot_services;
status = b->load_image (0, grub_efi_image_handle,
- [patch] arm64: set correct length of device path end entry,
Leif Lindholm <=