efi: Do variable name validation tests in utf8
authorPeter Jones <pjones@redhat.com>
Mon, 8 Feb 2016 19:48:13 +0000 (14:48 -0500)
committerMatt Fleming <matt@codeblueprint.co.uk>
Wed, 10 Feb 2016 13:19:30 +0000 (13:19 +0000)
commit3dcb1f55dfc7631695e69df4a0d589ce5274bd07
treed8fb231f3d559a2b6e7be404c6ab09dcced8a757
parente0d64e6a880e64545ad7d55786aa84ab76bac475
efi: Do variable name validation tests in utf8

Actually translate from ucs2 to utf8 before doing the test, and then
test against our other utf8 data, instead of fudging it.

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>
drivers/firmware/efi/vars.c