From: Antonino A. Daplas Date: Tue, 17 Jul 2007 11:05:35 +0000 (-0700) Subject: controlfb: the pseudo_palette is only 16 elements long X-Git-Tag: v2.6.23-rc1~584 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11494543a5775b4764d0172084092715a533a8ce;p=linux-2.6 controlfb: the pseudo_palette is only 16 elements long The pseudo_palette is only 16 elements long. Signed-off-by: Antonino Daplas Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/controlfb.c b/drivers/video/controlfb.c index 8b762739b1..b0be7eac32 100644 --- a/drivers/video/controlfb.c +++ b/drivers/video/controlfb.c @@ -94,7 +94,7 @@ static inline int VAR_MATCH(struct fb_var_screeninfo *x, struct fb_var_screeninf struct fb_info_control { struct fb_info info; struct fb_par_control par; - u32 pseudo_palette[17]; + u32 pseudo_palette[16]; struct cmap_regs __iomem *cmap_regs; unsigned long cmap_regs_phys;