DORMANTno replies

[PATCH] pm2fb: free cmap memory on module remove

From: Krzysztof Helt <hidden>
Date: 2008-08-19 20:01:32

From: Krzysztof Helt <redacted>

Release cmap memory allocated in the probe function.

Signed-off-by: Krzysztof Helt <redacted>
---

diff -urp linux-ref/drivers/video/pm2fb.c linux-2.6/drivers/video/pm2fb.c
--- linux-ref/drivers/video/pm2fb.c	2008-08-09 05:09:05.000000000 +0200
+++ linux-2.6/drivers/video/pm2fb.c	2008-08-20 20:58:14.000000000 +0200
@@ -1746,6 +1746,7 @@ static void __devexit pm2fb_remove(struc
 	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);
 }

----------------------------------------------------------------------
Wygraj laptopa lub iPoda! Wez udzial w igrzyskach!
Kliknij >>> http://link.interia.pl/f1eda 





-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help