From: Antonino A. Daplas Date: Tue, 17 Jul 2007 11:05:38 +0000 (-0700) Subject: offb: the pseudo_palette is only 16 elements long X-Git-Tag: v2.6.23-rc1~578 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d01184c8db7f1aa9b10597b9f8071ecc5d7e12f8;p=linux-2.6 offb: the pseudo_palette is only 16 elements long The pseudo_palette is only 16 elements long. Signed-off-by: Antonino Daplas Acked-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/offb.c b/drivers/video/offb.c index 885b42836c..452433d469 100644 --- a/drivers/video/offb.c +++ b/drivers/video/offb.c @@ -271,7 +271,7 @@ static void __init offb_init_fb(const char *name, const char *full_name, return; } - size = sizeof(struct fb_info) + sizeof(u32) * 17; + size = sizeof(struct fb_info) + sizeof(u32) * 16; info = kmalloc(size, GFP_ATOMIC);