From: Krzysztof Helt Date: Thu, 24 Jul 2008 04:30:59 +0000 (-0700) Subject: tridentfb: fix unitialized pseudo_palette X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa0aa8ab2f28d8985daa79ecab51970376e17157;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git tridentfb: fix unitialized pseudo_palette Initialize the pseudo_palette pointer properly. This fixes crash when 16bpp or 32bpp mode is selected. Signed-off-by: Krzysztof Helt Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c index 9dedc1a5e421..6b3bb1e20738 100644 --- a/drivers/video/tridentfb.c +++ b/drivers/video/tridentfb.c @@ -1350,7 +1350,7 @@ static int __devinit trident_pci_probe(struct pci_dev *dev, 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