From: Karl Lessard <klessard@sunrisetelecom.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Small fix in fbmem
Date: Tue, 26 Oct 2004 14:19:50 -0400 [thread overview]
Message-ID: <417E9546.7090505@sunrisetelecom.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 153 bytes --]
Hi, this small patch may avoid terrific crashes in case that a fb driver
don't implements the fb_blank method and do use the generic one.
Thanks,
Karl
[-- Attachment #2: fbmem.patch --]
[-- Type: text/plain, Size: 418 bytes --]
--- linux/drivers/video/fbmem.c Tue Oct 26 14:09:42 2004
+++ linux/drivers/video/fbmem.c.patched Tue Oct 26 14:13:37 2004
@@ -862,7 +862,7 @@
return 0;
if (blank) {
black = kmalloc(sizeof(u16) * info->cmap.len, GFP_KERNEL);
- if (!black) {
+ if (black) {
memset(black, 0, info->cmap.len * sizeof(u16));
cmap.red = cmap.green = cmap.blue = black;
cmap.transp = info->cmap.transp ? black : NULL;
reply other threads:[~2004-10-26 18:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=417E9546.7090505@sunrisetelecom.com \
--to=klessard@sunrisetelecom.com \
--cc=linux-kernel@vger.kernel.org \
/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
Powered by JetHome