Skip to content

Commit

Permalink
imxfb: fix memory hole
Browse files Browse the repository at this point in the history
info->pseudo_palette was previously kmalloced.  Do not overwrite it afterwards

Signed-off-by: Sascha Hauer <[email protected]>
Signed-off-by: Antonino Daplas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
saschahauer authored and Linus Torvalds committed May 24, 2007
1 parent 90e16dd commit 772dce7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/video/imxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 772dce7

Please sign in to comment.