summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2012-08-15 13:32:37 +0400
committerDave Airlie <airlied@redhat.com>2012-08-24 03:37:09 +0400
commit993dcb05e47e357ade19c41f60b39085eeba8787 (patch)
tree1838ef5b057898f2e1fb959a4050375f734769cc
parentbcd7235cead59ae4b98324c668c90b291beefcb1 (diff)
downloadlinux-993dcb05e47e357ade19c41f60b39085eeba8787.tar.xz
drm/ast: fix EDID memory leak
The EDID returned by drm_get_edid() was never freed. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/ast/ast_mode.c1
1 files changed, 1 insertions, 0 deletions
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);