mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 23:24:11 +08:00
imxfb: fix memory hole
info->pseudo_palette was previously kmalloced. Do not overwrite it afterwards Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> 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
90e16dddec
commit
772dce71f5
@ -468,7 +468,6 @@ static int __init imxfb_init_fbinfo(struct device *dev)
|
||||
|
||||
info->fbops = &imxfb_ops;
|
||||
info->flags = FBINFO_FLAG_DEFAULT;
|
||||
info->pseudo_palette = (fbi + 1);
|
||||
|
||||
fbi->rgb[RGB_16] = &def_rgb_16;
|
||||
fbi->rgb[RGB_8] = &def_rgb_8;
|
||||
|
Loading…
Reference in New Issue
Block a user