mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
efi_loader: use EfiBootServicesData for DP to text
Memory allocated in the implementation of the EFI_DEVICE_PATH_TO_TEXT_PROTOCOL must be of type EfiBootServicesData. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
@@ -34,7 +34,7 @@ static u16 *efi_str_to_u16(char *str)
|
||||
efi_status_t ret;
|
||||
|
||||
len = sizeof(u16) * (utf8_utf16_strlen(str) + 1);
|
||||
ret = efi_allocate_pool(EFI_ALLOCATE_ANY_PAGES, len, (void **)&out);
|
||||
ret = efi_allocate_pool(EFI_BOOT_SERVICES_DATA, len, (void **)&out);
|
||||
if (ret != EFI_SUCCESS)
|
||||
return NULL;
|
||||
dst = out;
|
||||
|
Reference in New Issue
Block a user