mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
efi_loader: do not install NULL as device path
In an image is loaded from memory we do not have a device path. Do not install NULL as device path in this case. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
5f1ce1d4ca
commit
7df5af6f3a
1 changed files with 11 additions and 9 deletions
|
@ -1367,16 +1367,18 @@ efi_status_t efi_setup_loaded_image(
|
||||||
obj->handle = info;
|
obj->handle = info;
|
||||||
|
|
||||||
info->file_path = file_path;
|
info->file_path = file_path;
|
||||||
if (device_path)
|
|
||||||
info->device_handle = efi_dp_find_obj(device_path, NULL);
|
|
||||||
|
|
||||||
/*
|
if (device_path) {
|
||||||
* When asking for the device path interface, return
|
info->device_handle = efi_dp_find_obj(device_path, NULL);
|
||||||
* bootefi_device_path
|
/*
|
||||||
*/
|
* When asking for the device path interface, return
|
||||||
ret = efi_add_protocol(obj->handle, &efi_guid_device_path, device_path);
|
* bootefi_device_path
|
||||||
if (ret != EFI_SUCCESS)
|
*/
|
||||||
goto failure;
|
ret = efi_add_protocol(obj->handle, &efi_guid_device_path,
|
||||||
|
device_path);
|
||||||
|
if (ret != EFI_SUCCESS)
|
||||||
|
goto failure;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When asking for the loaded_image interface, just
|
* When asking for the loaded_image interface, just
|
||||||
|
|
Loading…
Add table
Reference in a new issue