summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/fbdev/mxsfb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c
index 7e1a9ea4dec4..a5f3c8048924 100644
--- a/drivers/video/fbdev/mxsfb.c
+++ b/drivers/video/fbdev/mxsfb.c
@@ -1517,6 +1517,7 @@ fb_destroy:
fb_destroy_modelist(&fb_info->modelist);
fb_pm_runtime_disable:
pm_runtime_disable(&host->pdev->dev);
+ devm_kfree(&pdev->dev, fb_info->pseudo_palette);
fb_release:
framebuffer_release(fb_info);
devm_kfree(&pdev->dev, host);
@@ -1538,6 +1539,7 @@ static int mxsfb_remove(struct platform_device *pdev)
platform_set_drvdata(pdev, NULL);
+ devm_kfree(&pdev->dev, fb_info->pseudo_palette);
framebuffer_release(fb_info);
devm_kfree(&pdev->dev, host);