From: Andres Salomon Date: Tue, 31 Mar 2009 22:25:22 +0000 (-0700) Subject: tridentfb: fix memory leaks in removal path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07b39b49b402355a7172c113102a8b68aafb17dd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git tridentfb: 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/tridentfb.c b/drivers/video/tridentfb.c index 479b2e79ad68..c5369ba9485a 100644 --- a/drivers/video/tridentfb.c +++ b/drivers/video/tridentfb.c @@ -1563,6 +1563,7 @@ static void __devexit trident_pci_remove(struct pci_dev *dev) release_mem_region(tridentfb_fix.mmio_start, tridentfb_fix.mmio_len); pci_set_drvdata(dev, NULL); kfree(info->pixmap.addr); + fb_dealloc_cmap(&info->cmap); framebuffer_release(info); }