fbdev: ignore VESA modes if framebuffer does not support them
commit4d31a2b74c6d063362ae10ce3be3e80d8713bf23
authorMichal Januszewski <spock@gentoo.org>
Thu, 16 Oct 2008 05:03:51 +0000 (15 22:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:45 +0000 (16 11:21 -0700)
treec125a2e581620a333437bcc5b3e75d24af928c58
parent5ab4840968cd094586f65fce978e35c66d25ac78
fbdev: ignore VESA modes if framebuffer does not support them

Currently, it is possible to set a graphics VESA mode at boot time via the
vga= parameter even when no framebuffer driver supporting this is
configured.  This could lead to the system booting with a black screen,
without a usable console.

Fix this problem by only allowing to set graphics modes at boot time if a
supporting framebuffer driver is configured.

Signed-off-by: Michal Januszewski <spock@gentoo.org>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/boot/video-vesa.c
drivers/video/Kconfig