Commit f4876ffe authored by Peter Seiderer's avatar Peter Seiderer Committed by Philipp Zabel

drm/imx: imx-ldb: fix channel->edid memleak

If edid was allocated during bind, it must be freed again during unbind.
Signed-off-by: default avatarPeter Seiderer <ps.report@gmx.net>
Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent dcbc9eb1
...@@ -574,6 +574,8 @@ static void imx_ldb_unbind(struct device *dev, struct device *master, ...@@ -574,6 +574,8 @@ static void imx_ldb_unbind(struct device *dev, struct device *master,
channel->connector.funcs->destroy(&channel->connector); channel->connector.funcs->destroy(&channel->connector);
channel->encoder.funcs->destroy(&channel->encoder); channel->encoder.funcs->destroy(&channel->encoder);
kfree(channel->edid);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment