Skip to content

Commit

Permalink
vesafb: fix memory leak
Browse files Browse the repository at this point in the history
When releasing framebuffer, free colourmap allocations.

Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Daniel J Blueman authored and Paul Mundt committed Jul 4, 2011
1 parent 17e8c4e commit 3e86f1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/vesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ static int vesafb_setcolreg(unsigned regno, unsigned red, unsigned green,

static void vesafb_destroy(struct fb_info *info)
{
fb_dealloc_cmap(&info->cmap);
if (info->screen_base)
iounmap(info->screen_base);
release_mem_region(info->apertures->ranges[0].base, info->apertures->ranges[0].size);
Expand Down

0 comments on commit 3e86f1d

Please sign in to comment.