From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: Vincent Stehl?? <vincent.stehle@arm.com>
Cc: u-boot@lists.denx.de, Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>
Subject: Re: [PATCH 1/2] efi_loader: fix get_package_list_handle() status
Date: Wed, 14 Dec 2022 18:12:32 +0900 [thread overview]
Message-ID: <20221214091232.GA21494@laputa> (raw)
In-Reply-To: <20221213213910.513801-2-vincent.stehle@arm.com>
On Tue, Dec 13, 2022 at 10:39:09PM +0100, Vincent Stehl?? wrote:
> 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.
Thank you for the heads-up.
You're right as far as the EFI specification is concerned.
FYI,
EDK-II also returns EFI_NOT_FOUND if the package list handle is *valid*
and yet we cannot find any matching handle in the HII database.
See
MdeModulePkg/Universal/HiiDatabaseDxe/Database.c
-Takahiro Akashi
> Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> ---
> lib/efi_loader/efi_hii.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/efi_loader/efi_hii.c b/lib/efi_loader/efi_hii.c
> index 75ff58aafa5..27db3be6a17 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 = {
> --
> 2.35.1
>
next prev parent reply other threads:[~2022-12-14 9:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 21:39 [PATCH 0/2] efi: small hii conformance fix Vincent Stehlé
2022-12-13 21:39 ` [PATCH 1/2] efi_loader: fix get_package_list_handle() status Vincent Stehlé
2022-12-14 9:12 ` AKASHI Takahiro [this message]
2022-12-22 9:37 ` Heinrich Schuchardt
2022-12-13 21:39 ` [PATCH 2/2] efi_selftest: add hii database protocol test case Vincent Stehlé
2022-12-22 9:45 ` Heinrich Schuchardt
2023-01-05 14:48 ` Vincent Stehlé
2023-01-05 17:03 ` Heinrich Schuchardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221214091232.GA21494@laputa \
--to=takahiro.akashi@linaro.org \
--cc=ilias.apalodimas@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=vincent.stehle@arm.com \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.