diff options
author | Jani Nikula <jani.nikula@intel.com> | 2012-08-15 09:32:36 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-08-24 09:37:03 +1000 |
commit | bcd7235cead59ae4b98324c668c90b291beefcb1 (patch) | |
tree | 90f4b52a099dada997579bca507510757a240579 /drivers/gpu | |
parent | 7d406b1cc0419dcfb00ffb46957f27fe809bbb74 (diff) | |
download | blackbird-op-linux-bcd7235cead59ae4b98324c668c90b291beefcb1.tar.gz blackbird-op-linux-bcd7235cead59ae4b98324c668c90b291beefcb1.zip |
drm/i915: fix EDID memory leak in SDVO
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')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index f3762f8b7194..5fb425bf4d03 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; } |