From: Antonino A. Daplas Date: Tue, 17 Jul 2007 11:05:40 +0000 (-0700) Subject: sgivwfb: the pseudo_palette is only 16 elements long X-Git-Tag: v2.6.23-rc1~574 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9965f5b137f11a7dce01b2c32874a4875f024306;p=linux-2.6-omap-h63xx.git sgivwfb: 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/sgivwfb.c b/drivers/video/sgivwfb.c index ebb6756aea0..4fb16240c04 100644 --- a/drivers/video/sgivwfb.c +++ b/drivers/video/sgivwfb.c @@ -752,7 +752,7 @@ static int __init sgivwfb_probe(struct platform_device *dev) struct fb_info *info; char *monitor; - info = framebuffer_alloc(sizeof(struct sgivw_par) + sizeof(u32) * 256, &dev->dev); + info = framebuffer_alloc(sizeof(struct sgivw_par) + sizeof(u32) * 16, &dev->dev); if (!info) return -ENOMEM; par = info->par;