diff options
author | Jani Nikula <jani.nikula@intel.com> | 2012-08-15 05:32:37 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-08-23 19:37:09 -0400 |
commit | 993dcb05e47e357ade19c41f60b39085eeba8787 (patch) | |
tree | 1838ef5b057898f2e1fb959a4050375f734769cc /drivers/gpu/drm/ast | |
parent | bcd7235cead59ae4b98324c668c90b291beefcb1 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/ast')
-rw-r--r-- | drivers/gpu/drm/ast/ast_mode.c | 1 |
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 7282c081fb5..866e9d48b2d 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) | |||
737 | if (edid) { | 737 | if (edid) { |
738 | drm_mode_connector_update_edid_property(&ast_connector->base, edid); | 738 | drm_mode_connector_update_edid_property(&ast_connector->base, edid); |
739 | ret = drm_add_edid_modes(connector, edid); | 739 | ret = drm_add_edid_modes(connector, edid); |
740 | kfree(edid); | ||
740 | return ret; | 741 | return ret; |
741 | } else | 742 | } else |
742 | drm_mode_connector_update_edid_property(&ast_connector->base, NULL); | 743 | drm_mode_connector_update_edid_property(&ast_connector->base, NULL); |