]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix iteration of FMP protocols
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Mon, 18 Dec 2023 09:57:41 +0000 (18:57 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 Jan 2024 17:17:46 +0000 (18:17 +0100)
commit5a0970ee8cf4391835d21c59e44a65d54d42377c
tree4763d08ff85b91646c9b24510827fa86f3028933
parent547d3dd28a46a18d59e00a153c8becca8d4e8cf9
efi_loader: fix iteration of FMP protocols

If one of the FMP protocols fails when calling GetImageInfo(),
populating the ESRT ends up with failure and other FMP protocols
are not added to the ESRT. We should still add all other FMP
protocols to the ESRT.

With this commit, iteration of all FMP protocols continues
even though one of the FMP protocols fails.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_esrt.c