提交 d01184c8 编写于 作者: A Antonino A. Daplas 提交者: Linus Torvalds

offb: the pseudo_palette is only 16 elements long

The pseudo_palette is only 16 elements long.
Signed-off-by: NAntonino Daplas <adaplas@gmail.com>
Acked-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 24fc7223
...@@ -271,7 +271,7 @@ static void __init offb_init_fb(const char *name, const char *full_name, ...@@ -271,7 +271,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
return; return;
} }
size = sizeof(struct fb_info) + sizeof(u32) * 17; size = sizeof(struct fb_info) + sizeof(u32) * 16;
info = kmalloc(size, GFP_ATOMIC); info = kmalloc(size, GFP_ATOMIC);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册