summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2007-07-17 13:05:40 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 19:23:12 +0200
commit9965f5b137f11a7dce01b2c32874a4875f024306 (patch)
tree17df7f475d661da3de2b08358017fcc4771f0b8d /drivers/video
parentq40fb: the pseudo_palette is only 16 elements long (diff)
downloadlinux-9965f5b137f11a7dce01b2c32874a4875f024306.tar.xz
linux-9965f5b137f11a7dce01b2c32874a4875f024306.zip
sgivwfb: the pseudo_palette is only 16 elements long
The pseudo_palette is only 16 elements long. Signed-off-by: Antonino Daplas <adaplas@gmail.com> 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/sgivwfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/sgivwfb.c b/drivers/video/sgivwfb.c
index ebb6756aea08..4fb16240c04d 100644
--- a/drivers/video/sgivwfb.c
+++ b/drivers/video/sgivwfb.c
@@ -752,7 +752,7 @@ static int __init sgivwfb_probe(struct platform_device *dev)
struct fb_info *info;
char *monitor;
- info = framebuffer_alloc(sizeof(struct sgivw_par) + sizeof(u32) * 256, &dev->dev);
+ info = framebuffer_alloc(sizeof(struct sgivw_par) + sizeof(u32) * 16, &dev->dev);
if (!info)
return -ENOMEM;
par = info->par;