]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix dereferencing invalid connectors in is_crtc_connector_off()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 Jul 2013 11:14:40 +0000 (12:14 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Jul 2013 11:24:18 +0000 (13:24 +0200)
commitf52539559483c239412f23b29fd976d2b015793b
tree57a058d51bc2480e53c039c25c9f5c730070e26b
parent88fc1e63ebfa6141335af165d1189157f7fefa59
drm/i915: Fix dereferencing invalid connectors in is_crtc_connector_off()

In commit 877b103b0951d1aaa04a35aadaff3f8737c0e2ff
Author: Imre Deak <imre.deak@intel.com>
Date:   Fri May 3 19:44:07 2013 +0200

    drm/i915: force full modeset if the connector is in DPMS OFF mode

a new function was added that walked over the set of connectors to see
if any of the currently associated CRTC was switched off. This function
walked an array of connectors, rather than the array of pointers to
connectors contained in the drm_mode_set - i.e. it was dereferencing far
past the end of the first connector. This only becomes an issue if we
attempt to use a clone mode (i.e. more than one connector per CRTC) such
that set->num_connectors > 1.

Reported-by: Timo Aaltonen <tjaalton@ubuntu.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65927
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Egbert Eich <eich@suse.de>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c