Commit f235f664 authored by Scot Doyle's avatar Scot Doyle Committed by Greg Kroah-Hartman

fbcon: initialize blink interval before calling fb_set_par

Since commit 27a4c827
    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: default avatarAlistair Popple <alistair@popple.id.au>
Signed-off-by: default avatarScot Doyle <lkml14@scotdoyle.com>
Cc: <stable@vger.kernel.org> [v4.2]
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f967fc8f
...@@ -1093,6 +1093,7 @@ static void fbcon_init(struct vc_data *vc, int init) ...@@ -1093,6 +1093,7 @@ static void fbcon_init(struct vc_data *vc, int init)
con_copy_unimap(vc, svc); con_copy_unimap(vc, svc);
ops = info->fbcon_par; ops = info->fbcon_par;
ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms);
p->con_rotate = initial_rotation; p->con_rotate = initial_rotation;
set_blitting_type(vc, info); set_blitting_type(vc, info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment