]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915/dp: Be paranoid in case we disable a DP before it is attached
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 17 Apr 2011 05:38:35 +0000 (06:38 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 21 May 2011 22:13:08 +0000 (15:13 -0700)
commit9e532c331c378b6ba7a0886b8410bcb523663b28
treeeff374c424d6b6bd0ac1e45a84b95db5c83eb88d
parente277c750ea81076d8dc68694acc7994a024d83b2
drm/i915/dp: Be paranoid in case we disable a DP before it is attached

commit 31acbcc408f412d1ba73765b846c38642be553c3 upstream.

Given that the hardware may be left in a random condition by the BIOS,
it is conceivable that we then attempt to clear the DP_PIPEB_SELECT bit
without us ever enabling/attaching the DP encoder to a pipe. Thus
causing a NULL deference when we attempt to wait for a vblank on that
crtc.

Reported-and-tested-by: Bryan Christ <bryan.christ@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36314
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36456
Reported-and-tested-by: Bo Wang <bo.b.wang@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/intel_dp.c