patch-2.4.21 linux-2.4.21/drivers/video/vesafb.c

Next file: linux-2.4.21/drivers/video/vga.h
Previous file: linux-2.4.21/drivers/video/tdfxfb.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/video/vesafb.c linux-2.4.21/drivers/video/vesafb.c
@@ -520,7 +520,7 @@
 	video_width         = screen_info.lfb_width;
 	video_height        = screen_info.lfb_height;
 	video_linelength    = screen_info.lfb_linelength;
-	video_size          = screen_info.lfb_size * 65536;
+	video_size          = screen_info.lfb_width *	screen_info.lfb_height * video_bpp;
 	video_visual = (video_bpp == 8) ?
 		FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)