From: Tom Gundersen Date: Tue, 1 Oct 2013 16:18:40 +0000 (+0200) Subject: x86/simplefb: Fix overflow causing bogus fall-back X-Git-Tag: v3.12-rc4~20^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e33a29a5ae711162c6b6fefc0a2ef18f4a4254bf;p=pandora-kernel.git x86/simplefb: Fix overflow causing bogus fall-back On my MacBook Air lfb_size is 4M, which makes the bitshit overflow (to 256GB - larger than 32 bits), meaning we fall back to efifb unnecessarily. Cast to u64 to avoid the overflow. Signed-off-by: Tom Gundersen Reviewed-by: David Herrmann Cc: Geert Uytterhoeven Cc: Stephen Warren Cc: Stephen Warren Link: http://lkml.kernel.org/r/1380644320-1026-1-git-send-email-teg@jklm.no Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed