q40fb: the pseudo_palette is only 16 elements long
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 17 Jul 2007 11:05:40 +0000 (04:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:12 +0000 (10:23 -0700)
The pseudo_palette is only 16 elements long.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/q40fb.c

index 48536c3e58a41afec3f6eb7bf7d7c6f17e22229c..4beac1df617b0ab9f6c909df4b5dc1ec1473afed 100644 (file)
@@ -95,7 +95,7 @@ static int __init q40fb_probe(struct platform_device *dev)
        /* mapped in q40/config.c */
        q40fb_fix.smem_start = Q40_PHYS_SCREEN_ADDR;
 
-       info = framebuffer_alloc(sizeof(u32) * 256, &dev->dev);
+       info = framebuffer_alloc(sizeof(u32) * 16, &dev->dev);
        if (!info)
                return -ENOMEM;