diff options
| author | Heinrich Schuchardt <[email protected]> | 2021-10-15 01:31:02 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2021-10-21 03:46:04 +0200 |
| commit | 0421735dd8ffc82db22c3767e7aa38c65fc7298e (patch) | |
| tree | 9b1b9fb1eb831410422689e70d7476cfc03053c7 /include | |
| parent | ebdea88d57d5e67b8f6e6cf615300eedbc7200a9 (diff) | |
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 <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/efi_loader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 5cdc72345e5..6e806f9b0db 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, |
