Skip to content

Commit 4b08800

Browse files
committed
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 e2e0b83 ("video/sticore: Remove info field from STI struct") the fb_info struct was at the beginning of the fb struct. Fixes: e2e0b83 ("video/sticore: Remove info field from STI struct") Signed-off-by: Helge Deller <deller@gmx.de> Cc: Thomas Zimmermann <tzimmermann@suse.de>
1 parent 018856c commit 4b08800

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/fbdev/stifb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ stifb_init_display(struct stifb_info *fb)
11581158
}
11591159
break;
11601160
}
1161-
stifb_blank(0, (struct fb_info *)fb); /* 0=enable screen */
1161+
stifb_blank(0, fb->info); /* 0=enable screen */
11621162

11631163
SETUP_FB(fb);
11641164
}

0 commit comments

Comments
 (0)