summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2013-12-08 22:03:58 +0100
committerPhilipp Zabel <p.zabel@pengutronix.de>2015-01-06 17:36:13 +0100
commitdcbc9eb1919359719be0ef652afe1d90b0fa98ed (patch)
treed0196378a74ff582088ccfd00cf6e39be0b14fd1 /drivers/gpu/drm/imx
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
downloadop-kernel-dev-dcbc9eb1919359719be0ef652afe1d90b0fa98ed.zip
op-kernel-dev-dcbc9eb1919359719be0ef652afe1d90b0fa98ed.tar.gz
drm/imx: parallel-display: fix imxpd-->edid memleak
If edid was allocated during bind, it must be freed again during unbind. Signed-off-by: Peter Seiderer <ps.report@gmx.net> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx')
-rw-r--r--drivers/gpu/drm/imx/parallel-display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/parallel-display.c b/drivers/gpu/drm/imx/parallel-display.c
index 796c3c1..88cf7ca 100644
--- a/drivers/gpu/drm/imx/parallel-display.c
+++ b/drivers/gpu/drm/imx/parallel-display.c
@@ -257,6 +257,8 @@ static void imx_pd_unbind(struct device *dev, struct device *master,
imxpd->encoder.funcs->destroy(&imxpd->encoder);
imxpd->connector.funcs->destroy(&imxpd->connector);
+
+ kfree(imxpd->edid);
}
static const struct component_ops imx_pd_ops = {
@@ -272,6 +274,7 @@ static int imx_pd_probe(struct platform_device *pdev)
static int imx_pd_remove(struct platform_device *pdev)
{
component_del(&pdev->dev, &imx_pd_ops);
+
return 0;
}
OpenPOWER on IntegriCloud