]> git.ipfire.org Git - thirdparty/u-boot.git/commit
efi_loader: fix hii keyboard layout pointer computation
authorVincent Stehlé <vincent.stehle@arm.com>
Tue, 12 May 2026 17:40:33 +0000 (19:40 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 18 May 2026 06:38:16 +0000 (08:38 +0200)
commitec95a60d9dcd9436faa08f8151f05e4bba8e14a0
tree1a9f59396b2f2ca7fffde9b210c33fd5ee4a2720
parente49c84f7bb7b69a9736e8243665b30b46075ab55
efi_loader: fix hii keyboard layout pointer computation

The EFI_HII_KEYBOARD_LAYOUT field `layout_length' is expressed in bytes,
but we add it to the `layout' pointer with (scaled) pointer arithmetic.
When adding an HII keyboard package with multiple keyboard layouts, this
results in only the first layout being added correctly; fix it.

Fixes: 8d3b77e36e10 ("efi: hii: add keyboard layout package support")
Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: AKASHI Takahiro <akashi.tkhro@gmail.com>
lib/efi_loader/efi_hii.c