diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-09-27 13:26:13 +0200 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2022-09-27 13:26:13 +0200 |
commit | 24e88ab0448814be43fc2781f3b54d7a73083345 (patch) | |
tree | 9d5e0ef7f971c22818354e2a460a00668dfd3fa7 /drivers/firmware/efi/libstub/file.c | |
parent | a241d94bb532dcfb7ef3f723e6a0a0e7cf8f10ea (diff) | |
parent | 40cd01a9c324bd238e107d9d5ecb6824146a7836 (diff) |
Merge tag 'efi-loongarch-for-v6.1-2' into HEAD
Second shared stable tag between EFI and LoongArch trees
This is necessary because the EFI libstub refactoring patches are mostly
directed at enabling LoongArch to wire up generic EFI boot support
without being forced to consume DT properties that conflict with
information that EFI also provides, e.g., memory map and reservations,
etc.
Diffstat (limited to 'drivers/firmware/efi/libstub/file.c')
-rw-r--r-- | drivers/firmware/efi/libstub/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/efi/libstub/file.c b/drivers/firmware/efi/libstub/file.c index bf133d39a543..f756c61396e9 100644 --- a/drivers/firmware/efi/libstub/file.c +++ b/drivers/firmware/efi/libstub/file.c @@ -256,6 +256,9 @@ efi_status_t handle_cmdline_files(efi_loaded_image_t *image, if (volume) volume->close(volume); + + if (*load_size == 0) + return EFI_NOT_READY; return EFI_SUCCESS; err_close_file: |