projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d987569
)
drm/i915: fix EDID memory leak in SDVO
author
Jani Nikula
<jani.nikula@intel.com>
Wed, 15 Aug 2012 09:32:36 +0000
(12:32 +0300)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 17 Aug 2012 07:21:34 +0000
(09:21 +0200)
The EDID returned by drm_get_edid() was never freed.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sdvo.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/intel_sdvo.c
b/drivers/gpu/drm/i915/intel_sdvo.c
index d172e9873131cc708a5351fdec3cc690a73cabcd..d81bb0bf28850f4ea734dedabec44d8478b12d44 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;
}