diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2008-07-24 00:30:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:35 -0400 |
commit | aa0aa8ab2f28d8985daa79ecab51970376e17157 (patch) | |
tree | 43ed7f173464bff5260032625aca81582e1390c1 /drivers/video | |
parent | a0d922562d56073f147a4de2983bee499dd2a10e (diff) |
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 <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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tridentfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1350 | 1350 | ||
1351 | info->fix = tridentfb_fix; | 1351 | info->fix = tridentfb_fix; |
1352 | info->fbops = &tridentfb_ops; | 1352 | info->fbops = &tridentfb_ops; |
1353 | 1353 | info->pseudo_palette = default_par->pseudo_pal; | |
1354 | 1354 | ||
1355 | info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; | 1355 | info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; |
1356 | #ifdef CONFIG_FB_TRIDENT_ACCEL | 1356 | #ifdef CONFIG_FB_TRIDENT_ACCEL |