bootmeth: pass size to efi_binary_run()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 22 Dec 2023 15:01:56 +0000 (16:01 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 22 Dec 2023 15:36:50 +0000 (10:36 -0500)
commit4b151562bb8e54160adedbc6a1c0c749c00a2f84
tree3a28317292fd019c6d6ca545be4975a87ba07b9f
parent7c4647b8fb448ac658a9bc726681ad9e75e6b9e8
bootmeth: pass size to efi_binary_run()

If we call efi_binary_run() with size parameter set to zero, we get an error

     Not a PE-COFF file

Fill the missing value.

Fixes: 1373ffde52e1 ("Merge tag 'v2024.01-rc5' into next")
Fixes: 7017fc54a5bc ("bootmeth: use efi_loader interfaces instead of bootefi command")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
boot/bootmeth_efi.c