lkml.org 
[lkml]   [2003]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix vesafb with large memory, this time properly
Marcelo

Thanks for apply my previous patch, but Geert Uytterhoeven noticed the
following problem with it

> video_size must be in bytes, hence it must be
>
> video_size = screen_info.lfb_width*screen_info.lfb_height*video_bpp/8;

The attached patch, against 2.4.21-rc2, fixes this

Cheers

Adam
diff -urN linux-2.4.21-rc2/drivers/video/vesafb.c linux-2.4.21-rc2-patched/drivers/video/vesafb.c
--- linux-2.4.21-rc2/drivers/video/vesafb.c 2003-05-15 07:42:55.000000000 +0100
+++ linux-2.4.21-rc2-patched/drivers/video/vesafb.c 2003-05-15 07:39:53.000000000 +0100
@@ -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_width * screen_info.lfb_height * video_bpp;
+ video_size = screen_info.lfb_width * screen_info.lfb_height * video_bpp / 8;
video_visual = (video_bpp == 8) ?
FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR;
\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.064 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site