Skip to content

Commit

Permalink
fbdev: stifb: Fix crash in stifb_blank()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Helge Deller committed Jan 23, 2024
1 parent 018856c commit 4b08800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/stifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4b08800

Please sign in to comment.