summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
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 /include/efi_loader.h
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 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 5cdc72345e..6e806f9b0d 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -842,7 +842,8 @@ struct efi_load_option {
};
struct efi_device_path *efi_dp_from_lo(struct efi_load_option *lo,
- efi_uintn_t *size, efi_guid_t guid);
+ efi_uintn_t *size,
+ const efi_guid_t *guid);
struct efi_device_path *efi_dp_concat(const struct efi_device_path *dp1,
const struct efi_device_path *dp2);
efi_status_t efi_deserialize_load_option(struct efi_load_option *lo, u8 *data,