Patch "drm/i915: Don't leak edid in intel_crt_detect_ddc()" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/i915: Don't leak edid in intel_crt_detect_ddc()
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-i915-don-t-leak-edid-in-intel_crt_detect_ddc.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
c34f078675f505c4437919bb1897b1351f16a050Mon Sep 17 00:00:00 2001
From: Ander Conselvan de Oliveira <[email protected]>
Date: Fri, 20 Jan 2017 16:28:42 +0200
Subject: drm/i915: Don't leak edid in intel_crt_detect_ddc()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Ander Conselvan de Oliveira <[email protected]>
commit c34f078675f505c4437919bb1897b1351f16a050 upstream.
In the path where intel_crt_detect_ddc() detects a CRT, if would return true without freeing the edid.
--- drivers/gpu/drm/i915/intel_crt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_crt.c +5 -4
@@ -499,6 +499,7 @@ static bool intel_crt_detect_ddc(structstruct drm_i915_private *dev_priv =to_i915 (crt->base.base.dev);struct edid *edid;struct i2c_adapter *i2c; +bool ret = false;BUG_ON (crt->base.type !=INTEL_OUTPUT_ANALOG );
@@ -515,17 +516,17 @@ static bool intel_crt_detect_ddc(struct*/ if (!is_digital) {DRM_DEBUG_KMS ("CRT detected via DDC:0x50 [EDID]\n" ); -return true; + ret = true; + }else { +DRM_DEBUG_KMS ("CRT not detected via DDC:0x50 [EDID reports a digital panel]\n" ); } - -DRM_DEBUG_KMS ("CRT not detected via DDC:0x50 [EDID reports a digital panel]\n" ); }else {DRM_DEBUG_KMS ("CRT not detected via DDC:0x50 [no valid EDID found]\n" ); }kfree (edid); -return false; +return ret; } static enum drm_connector_status
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/drm-i915-don-t-init-hpd-polling-for-vlv-and-chv-from-runtime_suspend.patch queue-4.9/drm-i915-check-for-null-atomic-state-in-intel_crtc_disable_noatomic.patch queue-4.9/drm-i915-don-t-leak-edid-in-intel_crt_detect_ddc.patch queue-4.9/drm-i915-fix-calculation-of-rotated-x-and-y-offsets-for-planar-formats.patch