diff options
author | Vincent Stehlé <vincent.stehle@arm.com> | 2022-12-13 22:39:09 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-12-29 10:51:50 +0100 |
commit | c33d389c7ab5924fc7892edaf11798d644a2d824 (patch) | |
tree | 80bcedfdc737410108bbc5cda6281f327f30331d | |
parent | 159dbe1fb12b20580f76f69173b176244d91b796 (diff) | |
download | u-boot-c33d389c7ab5924fc7892edaf11798d644a2d824.zip u-boot-c33d389c7ab5924fc7892edaf11798d644a2d824.tar.gz u-boot-c33d389c7ab5924fc7892edaf11798d644a2d824.tar.bz2 |
efi_loader: fix get_package_list_handle() status
When the HII protocol function get_package_list_handle() is called with an
invalid package list handle, it returns EFI_NOT_FOUND but this is not in
its list of possible status codes as per the EFI specification.
Return EFI_INVALID_PARAMETER instead to fix conformance.
Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r-- | lib/efi_loader/efi_hii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_hii.c b/lib/efi_loader/efi_hii.c index 75ff58a..27db3be 100644 --- a/lib/efi_loader/efi_hii.c +++ b/lib/efi_loader/efi_hii.c @@ -780,7 +780,7 @@ get_package_list_handle(const struct efi_hii_database_protocol *this, } } - return EFI_EXIT(EFI_NOT_FOUND); + return EFI_EXIT(EFI_INVALID_PARAMETER); } const struct efi_hii_database_protocol efi_hii_database = { |