[PATCH] tridentfb: fix unitialized pseudo_palette
DORMANTno replies
From: Krzysztof Helt <hidden>
Date: 2008-05-11 12:25:21
From: Krzysztof Helt <redacted> Initialize the pseudo_palette pointer properly. This fixes crash when 16bpp or 32bpp mode is selected. Signed-off-by: Krzysztof Helt <redacted> --- 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