From: Jani Nikula Date: Wed, 15 Aug 2012 09:32:36 +0000 (+0300) Subject: drm/i915: fix EDID memory leak in SDVO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=38ab8a2009e33ded06bf80d3a95da393d8d651d6;p=openwrt%2Fstaging%2Fblogic.git drm/i915: fix EDID memory leak in SDVO The EDID returned by drm_get_edid() was never freed. Signed-off-by: Jani Nikula Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index d172e9873131..d81bb0bf2885 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c @@ -1692,6 +1692,7 @@ static bool intel_sdvo_detect_hdmi_audio(struct drm_connector *connector) edid = intel_sdvo_get_edid(connector); if (edid != NULL && edid->input & DRM_EDID_INPUT_DIGITAL) has_audio = drm_detect_monitor_audio(edid); + kfree(edid); return has_audio; }