OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d96469
)
pm2fb: free cmap memory on module remove
author
Krzysztof Helt
<krzysztof.h1@wp.pl>
Wed, 20 Aug 2008 21:09:11 +0000
(14:09 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 20 Aug 2008 22:40:31 +0000
(15:40 -0700)
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>
drivers/video/pm2fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/pm2fb.c
b/drivers/video/pm2fb.c
index
3f1ca2a
..
c6dd924
100644
(file)
--- 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);
}