From: Jani Nikula Date: Wed, 15 Aug 2012 09:32:37 +0000 (+0000) Subject: drm/ast: fix EDID memory leak X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=993dcb05e47e357ade19c41f60b39085eeba8787;p=openwrt%2Fstaging%2Fblogic.git drm/ast: fix EDID memory leak The EDID returned by drm_get_edid() was never freed. Signed-off-by: Jani Nikula Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 7282c081fb53..866e9d48b2d4 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -737,6 +737,7 @@ static int ast_get_modes(struct drm_connector *connector) if (edid) { drm_mode_connector_update_edid_property(&ast_connector->base, edid); ret = drm_add_edid_modes(connector, edid); + kfree(edid); return ret; } else drm_mode_connector_update_edid_property(&ast_connector->base, NULL);