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 commite2e0b838a1
("video/sticore: Remove info field from STI struct") the fb_info struct was at the beginning of the fb struct. Fixes:e2e0b838a1
("video/sticore: Remove info field from STI struct") Signed-off-by: Helge Deller <deller@gmx.de> Cc: Thomas Zimmermann <tzimmermann@suse.de>
This commit is contained in:
parent
018856c3f1
commit
4b088005c8
@ -1158,7 +1158,7 @@ stifb_init_display(struct stifb_info *fb)
|
||||
}
|
||||
break;
|
||||
}
|
||||
stifb_blank(0, (struct fb_info *)fb); /* 0=enable screen */
|
||||
stifb_blank(0, fb->info); /* 0=enable screen */
|
||||
|
||||
SETUP_FB(fb);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user