linux-stable/drivers/gpu
Chris Wilson 8e647a279c drm/i915: Tightly scope intel_encoder to prevent invalid use
We reset intel_encoder for every matching encoder whilst iterating over
the encoders attached to this crtc when changing mode. As such in a
cloned configuration intel_encoder may not correspond to the correct
is_edp encoder.

By scoping intel_encoder to the loop, not only is the compiler able to
spot this mistake, we also improve readiability for ourselves.
[It might not be a mistake, within this function it is unclear as to
whether it is permissable for eDP to be cloned...]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-09-07 11:14:19 +01:00
..
drm drm/i915: Tightly scope intel_encoder to prevent invalid use 2010-09-07 11:14:19 +01:00
vga vgaarb: use MIT license 2010-06-03 13:13:34 +10:00
Makefile