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

Peter Seiderer ps.report at gmx.net
Thu Dec 5 15:00:15 PST 2013


---
 drivers/staging/imx-drm/imx-ldb.c | 2 ++
 1 file changed, 2 insertions(+)

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;
-- 
1.8.1.4



More information about the dri-devel mailing list