efi/libstub: Add UTF-8 decoding to efi_puts
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 18 May 2020 19:07:13 +0000 (15:07 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 20 May 2020 17:09:20 +0000 (19:09 +0200)
commit4b75bd363de3f3429c62359be4e4aa4da7fa233b
treefcca2307e27570aa9c7a8140de24dba7f2c479a4
parentd850a2ff918be0691f8d0544a2156c856c42da5b
efi/libstub: Add UTF-8 decoding to efi_puts

In order to be able to use the UTF-16 support added to vsprintf in the
previous commit, enhance efi_puts to decode UTF-8 into UTF-16. Invalid
UTF-8 encodings are passed through unchanged.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200518190716.751506-22-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c