1 diff -ruN linux-2.6.29.orig/drivers/video/console/fbcon.c linux-2.6.29/drivers/video/console/fbcon.c
2 --- linux-2.6.29.orig/drivers/video/console/fbcon.c 2009-05-14 22:21:12.000000000 +0200
3 +++ linux-2.6.29/drivers/video/console/fbcon.c 2009-05-15 01:45:36.000000000 +0200
5 /* Need to make room for the logo */
6 struct fbcon_ops *ops = info->fbcon_par;
7 int cnt, erase = vc->vc_video_erase_char, step;
8 - unsigned short *save = NULL, *r, *q;
9 + unsigned short *r, *q;
12 if (info->flags & FBINFO_MODULE) {
14 q = (unsigned short *) (vc->vc_origin +
15 vc->vc_size_row * rows);
16 step = logo_lines * cols;
17 - for (r = q - logo_lines * cols; r < q; r++)
18 - if (scr_readw(r) != vc->vc_video_erase_char)
20 - if (r != q && new_rows >= rows + logo_lines) {
21 - save = kmalloc(logo_lines * new_cols * 2, GFP_KERNEL);
23 - int i = cols < new_cols ? cols : new_cols;
24 - scr_memsetw(save, erase, logo_lines * new_cols * 2);
26 - for (cnt = 0; cnt < logo_lines; cnt++, r += i)
27 - scr_memcpyw(save + cnt * new_cols, r, 2 * i);
32 - /* We can scroll screen down */
33 - r = q - step - cols;
34 - for (cnt = rows - logo_lines; cnt > 0; cnt--) {
35 - scr_memcpyw(r + step, r, vc->vc_size_row);
40 - if (vc->vc_y + logo_lines >= rows)
41 - lines = rows - vc->vc_y - 1;
45 - vc->vc_pos += lines * vc->vc_size_row;
48 + r = q - step - cols;
49 + for (cnt = rows - logo_lines; cnt > 0; cnt--) {
50 + scr_memcpyw(r + step, r, vc->vc_size_row);
54 + if (vc->vc_y + logo_lines >= rows)
55 + lines = rows - vc->vc_y - 1;
59 + vc->vc_pos += lines * vc->vc_size_row;
60 scr_memsetw((unsigned short *) vc->vc_origin,
62 vc->vc_size_row * logo_lines);
68 - q = (unsigned short *) (vc->vc_origin +
71 - scr_memcpyw(q, save, logo_lines * new_cols * 2);
72 - vc->vc_y += logo_lines;
73 - vc->vc_pos += logo_lines * vc->vc_size_row;
77 if (logo_lines > vc->vc_bottom) {
78 logo_shown = FBCON_LOGO_CANSHOW;