summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-10-15 02:31:02 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-10-21 04:46:04 +0300
commit0421735dd8ffc82db22c3767e7aa38c65fc7298e (patch)
tree9b1b9fb1eb831410422689e70d7476cfc03053c7 /cmd
parentebdea88d57d5e67b8f6e6cf615300eedbc7200a9 (diff)
downloadu-boot-0421735dd8ffc82db22c3767e7aa38c65fc7298e.tar.xz
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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/efidebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index 67ab06aefc..5235dbb7c1 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -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);