From: Krzysztof Helt Date: Wed, 20 Aug 2008 21:09:11 +0000 (-0700) Subject: pm2fb: free cmap memory on module remove X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27aa069a8850a36b8aef0160e73cfd928c6bbcc4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git pm2fb: free cmap memory on module remove Release cmap memory allocated in the probe function. Signed-off-by: Krzysztof Helt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c index 3f1ca2adda3d..c6dd924976a4 100644 --- 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); }