Commit d2fa9e05 authored by Antonino Daplas's avatar Antonino Daplas Committed by David S. Miller

[VIDEO] ffb: The pseudo_palette is only 16 elements long

The pseudo_palette is only 16 elements long.
Signed-off-by: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 353076fe
...@@ -656,7 +656,7 @@ static int ffb_setcolreg(unsigned regno, ...@@ -656,7 +656,7 @@ static int ffb_setcolreg(unsigned regno,
{ {
u32 value; u32 value;
if (regno >= 256) if (regno >= 16)
return 1; return 1;
red >>= 8; red >>= 8;
...@@ -903,7 +903,7 @@ ffb_init_fix(struct fb_info *info) ...@@ -903,7 +903,7 @@ ffb_init_fix(struct fb_info *info)
struct all_info { struct all_info {
struct fb_info info; struct fb_info info;
struct ffb_par par; struct ffb_par par;
u32 pseudo_palette[256]; u32 pseudo_palette[16];
}; };
static int ffb_init_one(struct of_device *op) static int ffb_init_one(struct of_device *op)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment