]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fbcon: don´t call set_par() in fbcon_init() if vc_mode == KD_GRAPHICS
authorKnut Petersen <Knut_Petersen@t-online.de>
Sat, 7 Jan 2006 09:22:04 +0000 (10:22 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 7 Jan 2006 18:39:34 +0000 (10:39 -0800)
commitcebc8b77a5f368006df3f7567c63e1d9439aac64
treeb4ce49dd4ad6963bff6b69ba413f074b11114837
parent5cf341939b7459aa5d09054f374da9abd428a097
[PATCH] fbcon: don´t call set_par() in fbcon_init() if vc_mode == KD_GRAPHICS

Nothing prevents a user to modprobe a framebuffer driver from e.g.  the
xterm prompt.  As a result, the set_par() function of the driver will be
called from fbcon_init().

This is fatal as a lot of X / framebuffer combinations are unable to
recover from set_par() reprogramming the graphics controller in
KD_GRAPHICS mode.

It is also unnecessary as the set_par() function will be called during a
switch to KD_TEXT anyway.  Because of this no side effects are possible.

Signed-off-by: Knut Petersen <Knut_Petersen@t-online.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/fbcon.c