[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1309216133-3118-1-git-send-email-daniel.blueman@gmail.com>
Date: Tue, 28 Jun 2011 07:08:53 +0800
From: Daniel J Blueman <daniel.blueman@...il.com>
To: Paul Mundt <lethal@...ux-sh.org>
Cc: linux-fbdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Daniel J Blueman <daniel.blueman@...il.com>
Subject: [PATCH] vesafb: fix memory leak
When releasing framebuffer, free colourmap allocations.
Signed-off-by: Daniel J Blueman <daniel.blueman@...il.com>
---
drivers/video/vesafb.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c
index a99bbe8..501b340 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);
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists