diff options
author | 2011-06-27 23:08:53 +0000 | |
---|---|---|
committer | 2011-07-04 16:02:48 +0900 | |
commit | 3e86f1d8e397b1ef59a97910089e16a99e8f31f7 (patch) | |
tree | a2ea29b95031732a07d0b7abb1ac67d812af0c41 | |
parent | fbdev: amba: Link fb device to its parent (diff) | |
download | linux-3e86f1d8e397b1ef59a97910089e16a99e8f31f7.tar.gz linux-3e86f1d8e397b1ef59a97910089e16a99e8f31f7.tar.bz2 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>
-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); |