From: Dan Carpenter Date: Mon, 5 Mar 2012 18:06:14 +0000 (+0300) Subject: x86, efi: Fix pointer math issue in handle_ramdisks() X-Git-Tag: v3.4-rc1~148^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b738351ba92f48b943ac59aff6b5b0f17f37c9;p=pandora-kernel.git x86, efi: Fix pointer math issue in handle_ramdisks() "filename" is a efi_char16_t string so this check for reaching the end of the array doesn't work. We need to cast the pointer to (u8 *) before doing the math. This patch changes the "filename" to "filename_16" to avoid confusion in the future. Signed-off-by: Dan Carpenter Link: http://lkml.kernel.org/r/20120305180614.GA26880@elgon.mountain Acked-by: Matt Fleming Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed