Commit 200000387c2d16fa069af6e176d1fcb886024f4d

Authored by Heinrich Schuchardt
1 parent e4afcb2876

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/efi_loader/efi_boottime.c
... ... @@ -1779,7 +1779,7 @@
1779 1779 /* Open file */
1780 1780 f = efi_file_from_path(file_path);
1781 1781 if (!f)
1782   - return EFI_DEVICE_ERROR;
  1782 + return EFI_NOT_FOUND;
1783 1783  
1784 1784 /* Get file size */
1785 1785 bs = 0;