Skip to content

Commit

Permalink
drm/ast: fix EDID memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jani Nikula authored and Dave Airlie committed Aug 23, 2012
1 parent bcd7235 commit 993dcb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/ast/ast_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 993dcb0

Please sign in to comment.