]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tgafb: actually allocate memory for the pseudo_palette
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 17 Jul 2007 11:05:41 +0000 (04:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:12 +0000 (10:23 -0700)
No memory allocation was done for the pseudo_palette.  Allocate one for it.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Acked-by: "Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/tgafb.c
include/video/tgafb.h

index 5c0dab62809972b2b28bc3bd1929e8994e915cae..89facb73edfcfff079ece1b6ce0aa140efd4b697 100644 (file)
@@ -1634,7 +1634,7 @@ tgafb_register(struct device *dev)
                      FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT;
        info->fbops = &tgafb_ops;
        info->screen_base = par->tga_fb_base;
-       info->pseudo_palette = (void *)(par + 1);
+       info->pseudo_palette = par->palette;
 
        /* This should give a reasonable default video mode.  */
        if (tga_bus_pci) {
index 03d0dbe293a8718902663f2ec190b545c4e6dae8..7bc5e2c1482617fd185c74fb8d78ded3abc69abd 100644 (file)
@@ -216,6 +216,7 @@ struct tga_par {
        u32 pll_freq;                   /* pixclock in mhz */
        u32 bits_per_pixel;             /* bits per pixel */
        u32 sync_on_green;              /* set if sync is on green */
+       u32 palette[16];
 };