]> git.baikalelectronics.ru Git - uboot.git/commit
charset: make u16_strnlen accessible at runtime
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Sun, 22 Nov 2020 13:10:26 +0000 (15:10 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 29 Nov 2020 04:18:37 +0000 (05:18 +0100)
commit9c742dbc7d0f3ff9f2eb15db017d8d52d3af6394
treea92bfd16dfad8a9a35e08e79747128be3c9af148
parentcecd4cd3ad4cc72ba1df092edd84d94397d54b8e
charset: make u16_strnlen accessible at runtime

commit 1fabfeef506c ("efi_loader: parameter check in GetNextVariableName()")
introduces a check using u16_strnlen(). This code is used on EFI
runtime variables as well, so unless we mark it as runtime, the kernel
will crash trying to access it.

Fixes: 1fabfeef506c ("efi_loader: parameter check in GetNextVariableName()")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/charset.c