All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tridentfb: fix unitialized pseudo_palette
@ 2008-05-11 12:25 Krzysztof Helt
  0 siblings, 0 replies; only message in thread
From: Krzysztof Helt @ 2008-05-11 12:25 UTC (permalink / raw
  To: Linux-fbdev-devel

From: Krzysztof Helt <krzysztof.h1@wp.pl>

Initialize the pseudo_palette pointer properly. This fixes crash
when 16bpp or 32bpp mode is selected.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>

---
This is ugly regression introduced by one of my earlier patches.

diff -urp linux-2.6.25/drivers/video/tridentfb.c linux-new/drivers/video/tridentfb.c
--- linux-2.6.25/drivers/video/tridentfb.c	2008-05-11 03:33:29.830636688 +0200
+++ linux-new/drivers/video/tridentfb.c	2008-05-11 03:31:32.614634551 +0200
@@ -1350,7 +1350,7 @@ static int __devinit trident_pci_probe(s
 
 	info->fix = tridentfb_fix;
 	info->fbops = &tridentfb_ops;
-
+	info->pseudo_palette = default_par->pseudo_pal;
 
 	info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
 #ifdef CONFIG_FB_TRIDENT_ACCEL

----------------------------------------------------------------------
Sprawdz, czy jestes prawdziwym internauta!
Kliknij http://link.interia.pl/f1d6e


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

only message in thread, other threads:[~2008-05-11 12:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-11 12:25 [PATCH] tridentfb: fix unitialized pseudo_palette Krzysztof Helt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.