diff options
author | Peter Seiderer <ps.report@gmx.net> | 2013-12-08 22:03:57 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2015-01-06 17:36:13 +0100 |
commit | f4876ffea6f310e1c7ee015687f913248a0d5f9c (patch) | |
tree | 92eeb4cdaa4b75d7ed3b50fd82120dec85fff63c /drivers/gpu | |
parent | drm/imx: parallel-display: fix imxpd-->edid memleak (diff) | |
download | linux-f4876ffea6f310e1c7ee015687f913248a0d5f9c.tar.xz linux-f4876ffea6f310e1c7ee015687f913248a0d5f9c.zip |
drm/imx: imx-ldb: fix channel->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')
-rw-r--r-- | drivers/gpu/drm/imx/imx-ldb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c index c60460043e24..4ff62a517c75 100644 --- a/drivers/gpu/drm/imx/imx-ldb.c +++ b/drivers/gpu/drm/imx/imx-ldb.c @@ -574,6 +574,8 @@ static void imx_ldb_unbind(struct device *dev, struct device *master, channel->connector.funcs->destroy(&channel->connector); channel->encoder.funcs->destroy(&channel->encoder); + + kfree(channel->edid); } } |