diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-05 16:55:06 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-07 21:10:04 +0200 |
commit | 84a918e8ce6cdc968a17e91768650bfe9eb8844a (patch) | |
tree | ac22a90dccc226a75dcc8d4878a5366327edd4e6 /include/efi_loader.h | |
parent | e7c3cd6b67d87383fa48b41c1b4037b75ceab597 (diff) | |
download | u-boot-84a918e8ce6cdc968a17e91768650bfe9eb8844a.tar.gz |
efi_loader: LoadImage() check parent image
If the parent image handle does not refer to a loaded image return
EFI_INVALID_PARAMETER.
(UEFI SCT II 2017: 3.4.1 LoadImage() - 5.1.4.1.1)
Mark our root node as a loaded image to avoid an error when using it as
parent image.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index d3a1d4c465..07ef14ba1c 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -187,6 +187,7 @@ struct efi_handler { */ enum efi_object_type { EFI_OBJECT_TYPE_UNDEFINED = 0, + EFI_OBJECT_TYPE_U_BOOT_FIRMWARE, EFI_OBJECT_TYPE_LOADED_IMAGE, EFI_OBJECT_TYPE_STARTED_IMAGE, }; |