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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9965f5b137f11a7dce01b2c32874a4875f024306;p=linux-2.6 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 ebb6756aea..4fb16240c0 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;