Skip to content
Snippets Groups Projects
Commit 3e86f1d8 authored by Daniel J Blueman's avatar Daniel J Blueman Committed by Paul Mundt
Browse files

vesafb: fix memory leak


When releasing framebuffer, free colourmap allocations.

Signed-off-by: default avatarDaniel J Blueman <daniel.blueman@gmail.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 17e8c4e1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment