Skip to content

Commit f235f66

Browse files
Scot Doylegregkh
authored andcommitted
fbcon: initialize blink interval before calling fb_set_par
Since commit 27a4c82 fbcon: use the cursor blink interval provided by vt a PPC64LE kernel fails to boot when fbcon_add_cursor_timer uses an uninitialized ops->cur_blink_jiffies. Prevent by initializing in fbcon_init before the call to info->fbops->fb_set_par. Reported-and-tested-by: Alistair Popple <[email protected]> Signed-off-by: Scot Doyle <[email protected]> Cc: <[email protected]> [v4.2] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f967fc8 commit f235f66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/video/console/fbcon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ static void fbcon_init(struct vc_data *vc, int init)
10931093
con_copy_unimap(vc, svc);
10941094

10951095
ops = info->fbcon_par;
1096+
ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms);
10961097
p->con_rotate = initial_rotation;
10971098
set_blitting_type(vc, info);
10981099

0 commit comments

Comments
 (0)