mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
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>
This commit is contained in:
parent
bcd7235cea
commit
993dcb05e4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user