mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Small fix in fbmem
@ 2004-10-26 18:19 Karl Lessard
  0 siblings, 0 replies; only message in thread
From: Karl Lessard @ 2004-10-26 18:19 UTC (permalink / raw)
  To: linux-kernel

[-- 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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-26 18:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26 18:19 [PATCH] Small fix in fbmem Karl Lessard

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