From: Antonino A. Daplas Date: Tue, 17 Jul 2007 11:05:40 +0000 (-0700) Subject: q40fb: the pseudo_palette is only 16 elements long X-Git-Tag: v2.6.23-rc1~575 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce303c076baad1b7d8d41d1b98c373843eb820cc;p=platform%2Fupstream%2Fkernel-adaptation-pc.git q40fb: the pseudo_palette is only 16 elements long The pseudo_palette is only 16 elements long. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/q40fb.c b/drivers/video/q40fb.c index 48536c3..4beac1d 100644 --- a/drivers/video/q40fb.c +++ b/drivers/video/q40fb.c @@ -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;