aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorTom Gundersen <[email protected]>2013-10-01 18:18:40 +0200
committerIngo Molnar <[email protected]>2013-10-02 07:50:40 +0200
commite33a29a5ae711162c6b6fefc0a2ef18f4a4254bf (patch)
tree292279e5e312b12e60598caab00434ddd21c536f /lib/memory-notifier-error-inject.c
parent669fc2f0c70a6e14eefc503b72ce350448e9634e (diff)
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 <[email protected]> Reviewed-by: David Herrmann <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Stephen Warren <[email protected]> Cc: Stephen Warren <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions