[PATCH] fbcon: Save current display during initialization
authorAntonino A. Daplas <adaplas@gmail.com>
Fri, 31 Mar 2006 10:31:45 +0000 (02:31 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:19:00 +0000 (12:19 -0800)
The current display was not saved during initialization.  This leads to hard
to track console corruption, such as a misplaced cursor, which is correctible
by switching consoles.  Fix this minor bug.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/fbcon.c

index d7351560f581363529b57ecd31b3e01569a032b7..ca020719d20b14959b3d1daa31d4e1c91742df2e 100644 (file)
@@ -1142,6 +1142,7 @@ static void fbcon_init(struct vc_data *vc, int init)
                set_blitting_type(vc, info);
        }
 
+       ops->p = &fb_display[fg_console];
 }
 
 static void fbcon_deinit(struct vc_data *vc)