From: Adam Mercer <r.a.mercer@blueyonder.co.uk>
To: marcelo@conectiva.com.br
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix vesafb with large memory, this time properly
Date: Thu, 15 May 2003 23:49:10 +0100 [thread overview]
Message-ID: <20030515224910.GA8375@skymoo.dyndns.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
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
[-- Attachment #2: 2.4.21-rc2-vesafb.patch --]
[-- Type: text/plain, Size: 691 bytes --]
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;
next reply other threads:[~2003-05-15 22:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-15 22:49 Adam Mercer [this message]
2003-05-15 22:58 ` Fred Garvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030515224910.GA8375@skymoo.dyndns.org \
--to=r.a.mercer@blueyonder.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®