forked from Minki/linux
offb: the pseudo_palette is only 16 elements long
The pseudo_palette is only 16 elements long. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
24fc72239a
commit
d01184c8db
@ -271,7 +271,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
|
||||
return;
|
||||
}
|
||||
|
||||
size = sizeof(struct fb_info) + sizeof(u32) * 17;
|
||||
size = sizeof(struct fb_info) + sizeof(u32) * 16;
|
||||
|
||||
info = kmalloc(size, GFP_ATOMIC);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user