Skip to content

Commit

Permalink
[VIDEO] ffb: The pseudo_palette is only 16 elements long
Browse files Browse the repository at this point in the history
The pseudo_palette is only 16 elements long.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Antonino Daplas authored and David S. Miller committed Jun 5, 2007
1 parent 353076f commit d2fa9e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/ffb.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ static int ffb_setcolreg(unsigned regno,
{
u32 value;

if (regno >= 256)
if (regno >= 16)
return 1;

red >>= 8;
Expand Down Expand Up @@ -903,7 +903,7 @@ ffb_init_fix(struct fb_info *info)
struct all_info {
struct fb_info info;
struct ffb_par par;
u32 pseudo_palette[256];
u32 pseudo_palette[16];
};

static int ffb_init_one(struct of_device *op)
Expand Down

0 comments on commit d2fa9e0

Please sign in to comment.