From: Daniel J Blueman Date: Mon, 27 Jun 2011 23:08:53 +0000 (+0000) Subject: vesafb: fix memory leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e86f1d8e397b1ef59a97910089e16a99e8f31f7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git vesafb: fix memory leak When releasing framebuffer, free colourmap allocations. Signed-off-by: Daniel J Blueman Signed-off-by: Paul Mundt --- diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c index a99bbe86db13..501b3406c6d5 100644 --- a/drivers/video/vesafb.c +++ b/drivers/video/vesafb.c @@ -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);