diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-05-13 10:36:21 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-05-13 11:09:51 +0200 |
commit | c7c0ca37673d8f1ae1c54dad1869101f566923f7 (patch) | |
tree | 19719507f0910d6a23ec5a92b58b828527ef4134 /cmd | |
parent | e1273ea2ec0edfa5502b66b0b142efddd2ef8283 (diff) | |
download | u-boot-c7c0ca37673d8f1ae1c54dad1869101f566923f7.zip u-boot-c7c0ca37673d8f1ae1c54dad1869101f566923f7.tar.gz u-boot-c7c0ca37673d8f1ae1c54dad1869101f566923f7.tar.bz2 |
efi_loader: fix efi_dp_from_file()
* When called from efi_dp_from_name() we miss to append the filename
for non-block devices.
* expand_media_path() could be simplified by using efi_dp_from_file to
prepend the device path of the boot device.
This can be avoided by passing a device path to efi_dp_from_file() instead
of a block device descriptor and a partition number.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bootefi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 8aa15a6..5c0afec 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -589,7 +589,7 @@ static efi_status_t bootefi_test_prepare if (!bootefi_device_path) return EFI_OUT_OF_RESOURCES; - bootefi_image_path = efi_dp_from_file(NULL, 0, path); + bootefi_image_path = efi_dp_from_file(NULL, path); if (!bootefi_image_path) { ret = EFI_OUT_OF_RESOURCES; goto failure; |