projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/video/pm2fb.c
b/drivers/video/pm2fb.c
index 3f1ca2adda3d7353fe41529bb9fa59c1085affa3..c6dd924976a4f105457bd15c205a2938a07eeee3 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);
}