]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
efi_loader: LoadImage must return EFI_NOT_FOUND
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 11 Jun 2019 17:00:56 +0000 (19:00 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 14 Jun 2019 17:18:39 +0000 (19:18 +0200)
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>
lib/efi_loader/efi_boottime.c

index 7bb0fc2e5211e98331c9abe7f6501d1bad6b31a6..251dfc4ecc41955a4e6ab917bd7c33f0b2951a48 100644 (file)
@@ -1779,7 +1779,7 @@ efi_status_t efi_load_image_from_path(struct efi_device_path *file_path,
        /* Open file */
        f = efi_file_from_path(file_path);
        if (!f)
-               return EFI_DEVICE_ERROR;
+               return EFI_NOT_FOUND;
 
        /* Get file size */
        bs = 0;