summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2007-07-17 11:05:38 (GMT)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 17:23:12 (GMT)
commitd01184c8db7f1aa9b10597b9f8071ecc5d7e12f8 (patch)
tree4c3e0ffe96c297d2e59651437f8cf8fddedbe3fe /drivers/video
parent24fc72239ab5a2d26ebdd4f6950539e6120d1a54 (diff)
downloadlinux-d01184c8db7f1aa9b10597b9f8071ecc5d7e12f8.tar.xz
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')
-rw-r--r--drivers/video/offb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/offb.c b/drivers/video/offb.c
index 885b428..452433d 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);