Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 993dcb05 authored by Jani Nikula's avatar Jani Nikula Committed by Dave Airlie
Browse files

drm/ast: fix EDID memory leak



The EDID returned by drm_get_edid() was never freed.

Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent bcd7235c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);