]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: capsule: enforce guid check in api and capsule_on_disk
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 27 Jul 2023 00:38:00 +0000 (09:38 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 3 Aug 2023 07:21:02 +0000 (09:21 +0200)
commit1b7e469a66521d90b6f51fe0a27abada664471ba
treeb857c2a0cd945075141e0f13108c58828bc4eb42
parent829445382c196301309b7f12630c1e04a4986eba
efi_loader: capsule: enforce guid check in api and capsule_on_disk

While UPDATE_CAPSULE api is not fully implemented, this interface and
capsule-on-disk feature should behave in the same way, especially in
handling an empty capsule for fwu multibank, for future enhancement.

So move the guid check into efi_capsule_update_firmware().

Fixed: commit a6aafce494ab ("efi_loader: use efi_update_capsule_firmware() for capsule on disk")
Reported-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reported-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Tested-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_capsule.c