diff options
author | Daniel J Blueman <daniel.blueman@gmail.com> | 2011-06-28 01:08:53 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-07-04 09:02:48 +0200 |
commit | 3e86f1d8e397b1ef59a97910089e16a99e8f31f7 (patch) | |
tree | a2ea29b95031732a07d0b7abb1ac67d812af0c41 /drivers/video/vesafb.c | |
parent | fbdev: amba: Link fb device to its parent (diff) | |
download | linux-3e86f1d8e397b1ef59a97910089e16a99e8f31f7.tar.xz linux-3e86f1d8e397b1ef59a97910089e16a99e8f31f7.zip |
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/vesafb.c')
-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, 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); |