diff mbox

[1/2] imx-drm: fix channel->edid memleak

Message ID 1386284416-8364-1-git-send-email-ps.report@gmx.net (mailing list archive)
State New, archived
Headers show

Commit Message

Peter Seiderer Dec. 5, 2013, 11 p.m. UTC
---
 drivers/staging/imx-drm/imx-ldb.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/drivers/staging/imx-drm/imx-ldb.c b/drivers/staging/imx-drm/imx-ldb.c
index 7e59329..448f3ce 100644
--- a/drivers/staging/imx-drm/imx-ldb.c
+++ b/drivers/staging/imx-drm/imx-ldb.c
@@ -599,6 +599,8 @@  static int imx_ldb_remove(struct platform_device *pdev)
 
 		imx_drm_remove_connector(channel->imx_drm_connector);
 		imx_drm_remove_encoder(channel->imx_drm_encoder);
+
+		kfree(channel->edid);
 	}
 
 	return 0;