]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix get_package_list_handle() status
authorVincent Stehlé <vincent.stehle@arm.com>
Tue, 13 Dec 2022 21:39:09 +0000 (22:39 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 29 Dec 2022 09:51:50 +0000 (10:51 +0100)
commit5a8efd22a74806fa249b4ed23b12eba5a225c214
tree80bcedfdc737410108bbc5cda6281f327f30331d
parent9a864afa8382558f037640e30e99b01509e5c0cd
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>
lib/efi_loader/efi_hii.c