diff options
author | Peter Seiderer <ps.report@gmx.net> | 2013-12-08 21:03:57 (GMT) |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2015-01-06 16:36:13 (GMT) |
commit | f4876ffea6f310e1c7ee015687f913248a0d5f9c (patch) | |
tree | 92eeb4cdaa4b75d7ed3b50fd82120dec85fff63c /drivers/gpu/drm/imx | |
parent | dcbc9eb1919359719be0ef652afe1d90b0fa98ed (diff) | |
download | linux-f4876ffea6f310e1c7ee015687f913248a0d5f9c.tar.xz |
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/drm/imx')
-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 c604600..4ff62a5 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); } } |