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)
commit6974a4a37348ba272e53dd33effcc0db9e144c59
treea92bfd16dfad8a9a35e08e79747128be3c9af148
parent03699bc75621934f7fb5d5a023007b39fb21ad6b
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