From: Paulo Zanoni Date: Wed, 12 Jun 2013 20:27:23 +0000 (-0300) Subject: drm/i915: don't check encoder at DP connector destroy() X-Git-Tag: v3.11-rc1~65^2~16^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acd8db100ed5220fe8043f91cdc20155325542a9;p=pandora-kernel.git drm/i915: don't check encoder at DP connector destroy() By the time we call intel_dp_destroy (which destroys the connector) the encoder may have been destroyed already, so if we use it we may be reading some free memory. That happens in drm_mode_config_cleanup() and also inside intel_dp_init_connector() when we detect a ghost eDP. I also hope this may solve some random memory bugs. Reported by kmemcheck. Signed-off-by: Paulo Zanoni Reviewed-by: Zoltan Nyul Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed