efi_loader: add comments on efi_file_from_path() regarding alignment
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 10 Nov 2022 13:31:30 +0000 (15:31 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 16 Nov 2022 07:34:06 +0000 (08:34 +0100)
commit94a574d8f6116a12def77fbf9a92f02a430a1d12
treefe83aea3c0d080db08e21d695a8cf1e9a76e6477
parent1167e88ab876febdc1c567e877a6d81996a566a1
efi_loader: add comments on efi_file_from_path() regarding alignment

UEFI specification requires pointers that are passed to protocol member
functions to be aligned.  There's a u16_strdup in that function which
doesn't make sense otherwise  Add a comment so no one removes it
accidentally

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_file.c