projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d406b1
)
drm/i915: fix EDID memory leak in SDVO
author
Jani Nikula
<jani.nikula@intel.com>
Wed, 15 Aug 2012 09:32:36 +0000
(09:32 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 23 Aug 2012 23:37:03 +0000
(09:37 +1000)
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>
drivers/gpu/drm/i915/intel_sdvo.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_sdvo.c
b/drivers/gpu/drm/i915/intel_sdvo.c
index f3762f8b71941d85f0e8b48a737e341fcefdb825..5fb425bf4d03e294b9f09f989208091c2fe09f9f 100644
(file)
--- 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;
}