[PATCH] fbcon: Store struct display when setting all vcs
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 10 Jan 2006 04:52:58 +0000 (20:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:43 +0000 (08:01 -0800)
Store struct display when setting all vc's.  Otherwise, fbcon's behavior
becomes undefined, such as malpositioning of the cursor.

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 42ea3af8a9adad4edcea0047cf1ee9c65faeab6f..f05afc02de2a29d3ca1502c00df5998f15d520ca 100644 (file)
@@ -2803,6 +2803,8 @@ static void fbcon_set_all_vcs(struct fb_info *info)
                                fbcon_update_softback(vc);
                }
        }
+
+       ops->p = &fb_display[ops->currcon];
 }
 
 static int fbcon_mode_deleted(struct fb_info *info,