forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
ce303c076b
commit
9965f5b137
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user