mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +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
|
@ -83,7 +83,7 @@ struct efi_device_path *efi_get_dp_from_boot(const efi_guid_t guid)
|
|||
if (ret != EFI_SUCCESS)
|
||||
goto out;
|
||||
|
||||
tmp = efi_dp_from_lo(&lo, &size, guid);
|
||||
tmp = efi_dp_from_lo(&lo, &size, &guid);
|
||||
if (!tmp)
|
||||
goto out;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue