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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}