diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-07-17 13:05:38 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 19:23:12 +0200 |
commit | d01184c8db7f1aa9b10597b9f8071ecc5d7e12f8 (patch) | |
tree | 4c3e0ffe96c297d2e59651437f8cf8fddedbe3fe /drivers/video/offb.c | |
parent | macfb: fix pseudo_palette size and overrun (diff) | |
download | linux-d01184c8db7f1aa9b10597b9f8071ecc5d7e12f8.tar.xz linux-d01184c8db7f1aa9b10597b9f8071ecc5d7e12f8.zip |
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>
Diffstat (limited to 'drivers/video/offb.c')
-rw-r--r-- | drivers/video/offb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/offb.c b/drivers/video/offb.c index 885b42836cbb..452433d46973 100644 --- a/drivers/video/offb.c +++ b/drivers/video/offb.c @@ -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); |