提交 d2fa9e05 编写于 作者: A Antonino Daplas 提交者: David S. Miller

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

The pseudo_palette is only 16 elements long.
Signed-off-by: NAntonino Daplas <adaplas@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 353076fe
......@@ -656,7 +656,7 @@ static int ffb_setcolreg(unsigned regno,
{
u32 value;
if (regno >= 256)
if (regno >= 16)
return 1;
red >>= 8;
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册