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
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue