From: Andres Salomon Date: Tue, 31 Mar 2009 22:25:21 +0000 (-0700) Subject: tdfxfb: fix memory leaks in removal path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=895d72279da7f24f266f9583c239e7b22230127c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git tdfxfb: fix memory leaks in removal path We were leaking the cmap memory. Signed-off-by: Andres Salomon Acked-by: Krzysztof Helt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c index 14bd3f3680b8..ee64771fbe3d 100644 --- a/drivers/video/tdfxfb.c +++ b/drivers/video/tdfxfb.c @@ -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); }