diff options
author | Helge Deller <deller@gmx.de> | 2024-01-22 23:26:33 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-23 11:13:24 +0300 |
commit | 4b088005c897a62fe98f70ab69687706cb2fad3b (patch) | |
tree | 3e86744c0b294ce7088598936b6e00379f8cfa13 /drivers/video | |
parent | 018856c3f171517c66d5d7d3755ae0c517924fd7 (diff) | |
download | linux-4b088005c897a62fe98f70ab69687706cb2fad3b.tar.xz |
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 e2e0b838a184 ("video/sticore: Remove info field from
STI struct") the fb_info struct was at the beginning of the fb struct.
Fixes: e2e0b838a184 ("video/sticore: Remove info field from STI struct")
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/stifb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c index 2de0e675fd15..8e5bac27542d 100644 --- a/drivers/video/fbdev/stifb.c +++ b/drivers/video/fbdev/stifb.c @@ -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); } |