tdfxfb: fix memory leaks in removal path
PATCH 2/15 tdfxfb: fix memory leaks in removal path
We were leaking the cmap memory.
--- drivers/video/tdfxfb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/tdfxfb.c +1 -0
@@ -1393,6 +1393,7 @@ static void __devexit tdfxfb_remove(struct pci_dev *pdev)release_mem_region (pci_resource_start (pdev,0 ),pci_resource_len (pdev,0 ));pci_set_drvdata (pdev,NULL ); +fb_dealloc_cmap (&info->cmap);framebuffer_release (info); }
Signature · 9 lines
1.5.6.5 ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
Quoted 5 lines · On Sat, 7 Feb 2009 12:12:24 -0500 Andres Salomon <[email protected]> wrote:
We were leaking the cmap memory.
Signed-off-by Andres Salomon <[email protected]>---
Quoted 8 lines
drivers/video/tdfxfb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/video/tdfxfb.c +0
-0
drivers/video/tdfxfb.c static void __devexit tdfxfb_remove(struct pci_dev *pdev) · line 1399
Quoted 7 lines
drivers/video/tdfxfb.c +1
-0@@ -1393,6 +1393,7 @@ static void __devexit tdfxfb_remove(struct pci_dev *pdev)release_mem_region (pci_resource_start (pdev,0 ),pci_resource_len (pdev,0 ));pci_set_drvdata (pdev,NULL ); +fb_dealloc_cmap (&info->cmap);framebuffer_release (info); }
----------------------------------------------------------------------
Zostan mistrzem parkowania w Bombaju!
Zagraj >> http://link.interia.pl/f204e
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com