Skip to content

Commit

Permalink
tridentfb: fix unitialized pseudo_palette
Browse files Browse the repository at this point in the history
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>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Jul 24, 2008
1 parent a0d9225 commit aa0aa8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/tridentfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa0aa8a

Please sign in to comment.