summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2008-08-20 21:09:11 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-20 22:40:31 (GMT)
commit27aa069a8850a36b8aef0160e73cfd928c6bbcc4 (patch)
tree0663a25804fb14507713a43c338595e0e5ab94a2 /drivers
parent1d96469a34781340b2cc9bdf97d5913eecdaa038 (diff)
downloadlinux-27aa069a8850a36b8aef0160e73cfd928c6bbcc4.tar.xz
pm2fb: free cmap memory on module remove
Release cmap memory allocated in the probe function. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/pm2fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
index 3f1ca2a..c6dd924 100644
--- a/drivers/video/pm2fb.c
+++ b/drivers/video/pm2fb.c
@@ -1746,6 +1746,7 @@ static void __devexit pm2fb_remove(struct pci_dev *pdev)
release_mem_region(fix->mmio_start, fix->mmio_len);
pci_set_drvdata(pdev, NULL);
+ fb_dealloc_cmap(&info->cmap);
kfree(info->pixmap.addr);
kfree(info);
}