efi: Do variable name validation tests in utf8
authorPeter Jones <pjones@redhat.com>
Mon, 8 Feb 2016 19:48:13 +0000 (14:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:08 +0000 (15:07 -0800)
commit542f954e2d5d4b22cb68fa4cd6b5dcdfd880fccd
tree1c4aa237a2c6a2dd75ea5aa54d122fe149d3feb8
parent8df7c6d3bcef0f1711f1e775b2ffe0215f32011f
efi: Do variable name validation tests in utf8

commit 3dcb1f55dfc7631695e69df4a0d589ce5274bd07 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/vars.c