提交 f4876ffe 编写于 作者: P Peter Seiderer 提交者: 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: NPeter Seiderer <ps.report@gmx.net>
Acked-by: NSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 dcbc9eb1
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册