mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: efi_dp_from_lo() don't copy GUID
Instead of copying a GUID and then using a pointer to the copy for calling guidcmp(), just pass the pointer to the orginal GUID. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
ebdea88d57
commit
0421735dd8
4 changed files with 7 additions and 5 deletions
|
@ -1169,7 +1169,7 @@ static void show_efi_boot_opt_data(u16 *varname16, void *data, size_t *size)
|
|||
printf(" file_path: %ls\n", dp_str);
|
||||
efi_free_pool(dp_str);
|
||||
|
||||
initrd_path = efi_dp_from_lo(&lo, &initrd_dp_size, lf2_initrd_guid);
|
||||
initrd_path = efi_dp_from_lo(&lo, &initrd_dp_size, &lf2_initrd_guid);
|
||||
if (initrd_path) {
|
||||
dp_str = efi_dp_str(initrd_path);
|
||||
printf(" initrd_path: %ls\n", dp_str);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue