efi: Use ucs2_as_utf8 in efivarfs instead of open coding a bad version

commit e0d64e6a88 upstream.

Translate EFI's UCS-2 variable names to UTF-8 instead of just assuming
all variable names fit in ASCII.

Signed-off-by: Peter Jones <pjones@redhat.com>
Acked-by: Matthew Garrett <mjg59@coreos.com>
Tested-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Peter Jones 2016-02-08 14:48:12 -05:00 • committed by Greg Kroah-Hartman
commit 8df7c6d3bc
2 changed files with 14 additions and 23 deletions