mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-28 09:11:34 +02:00
efi_loader: LoadImage must return EFI_NOT_FOUND
If the file path does not relate to an existing file, LoadImage() must return EFI_NOT_FOUND. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
e4afcb2876
commit
200000387c
@ -1779,7 +1779,7 @@ efi_status_t efi_load_image_from_path(struct efi_device_path *file_path,
|
|||||||
/* Open file */
|
/* Open file */
|
||||||
f = efi_file_from_path(file_path);
|
f = efi_file_from_path(file_path);
|
||||||
if (!f)
|
if (!f)
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_NOT_FOUND;
|
||||||
|
|
||||||
/* Get file size */
|
/* Get file size */
|
||||||
bs = 0;
|
bs = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user