From: Alan Stern Date: Mon, 27 Apr 2009 17:22:40 +0000 (-0400) Subject: USB: Gadget: fix UTF conversion in the usbstring library X-Git-Tag: linux-omap-v2.6.30-rc6~42^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f43158caddcbb110916212ebe4e39993ae70864;p=pandora-kernel.git USB: Gadget: fix UTF conversion in the usbstring library This patch (as1234) fixes a bug in the UTF8 -> UTF-16 conversion routine in the gadget/usbstring library. In a UTF-8 multi-byte sequence, all bytes after the first should have their high-order two bits set to 10, not 11. Signed-off-by: Alan Stern Acked-by: David Brownell Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed