Commit 4b088005 authored by Helge Deller's avatar Helge Deller

fbdev: stifb: Fix crash in stifb_blank()

Avoid a kernel crash in stifb by providing the correct pointer to the fb_info
struct. Prior to commit e2e0b838 ("video/sticore: Remove info field from
STI struct") the fb_info struct was at the beginning of the fb struct.

Fixes: e2e0b838 ("video/sticore: Remove info field from STI struct")
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
parent 018856c3
...@@ -1158,7 +1158,7 @@ stifb_init_display(struct stifb_info *fb) ...@@ -1158,7 +1158,7 @@ stifb_init_display(struct stifb_info *fb)
} }
break; break;
} }
stifb_blank(0, (struct fb_info *)fb); /* 0=enable screen */ stifb_blank(0, fb->info); /* 0=enable screen */
SETUP_FB(fb); SETUP_FB(fb);
} }
......
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