diff options
author | Daniel J Blueman <daniel.blueman@gmail.com> | 2011-06-27 19:08:53 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-07-04 03:02:48 -0400 |
commit | 3e86f1d8e397b1ef59a97910089e16a99e8f31f7 (patch) | |
tree | a2ea29b95031732a07d0b7abb1ac67d812af0c41 /drivers/video | |
parent | 17e8c4e1ebf139743e3830439fa65fd906af4a43 (diff) |
vesafb: fix memory leak
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | 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 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, | |||
175 | 175 | ||
176 | static void vesafb_destroy(struct fb_info *info) | 176 | static void vesafb_destroy(struct fb_info *info) |
177 | { | 177 | { |
178 | fb_dealloc_cmap(&info->cmap); | ||
178 | if (info->screen_base) | 179 | if (info->screen_base) |
179 | iounmap(info->screen_base); | 180 | iounmap(info->screen_base); |
180 | release_mem_region(info->apertures->ranges[0].base, info->apertures->ranges[0].size); | 181 | release_mem_region(info->apertures->ranges[0].base, info->apertures->ranges[0].size); |