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
..
2010-08-15 17:37:07 -07:00
2010-08-25 19:24:16 -04:00
2010-08-12 09:11:31 -07:00
2010-08-23 18:12:46 -07:00
2010-08-23 18:29:18 -07:00
2010-08-06 12:25:06 -07:00
2010-08-07 18:25:34 +02:00
2010-09-06 23:09:53 +01:00
2010-08-03 13:47:05 -04:00
2010-08-09 20:45:04 -07:00
2010-08-13 10:06:54 +02:00
2010-08-12 09:11:31 -07:00
2010-08-26 12:46:03 +02:00
2010-08-29 09:17:31 +02:00
2010-08-14 12:34:34 -07:00
2010-08-12 11:27:57 +02:00
2010-09-07 11:14:19 +01:00
2010-08-18 15:29:38 -07:00
2010-08-25 15:42:12 +02:00
2010-08-14 11:57:54 -07:00
2010-08-11 23:04:39 +09:30
2010-08-15 11:17:52 -07:00
2010-08-05 23:26:30 +02:00
2010-08-12 09:11:31 -07:00
2010-08-25 07:51:40 -07:00
2010-08-23 18:30:30 -07:00
2010-08-12 09:11:31 -07:00
2010-08-24 15:28:28 +10:00
2010-08-18 16:16:05 +10:00
2010-08-24 10:42:08 -07:00
2010-08-12 08:43:31 -07:00
2010-08-14 16:21:00 -07:00
2010-08-12 10:01:30 -07:00
2010-08-12 10:01:59 -07:00
2010-08-20 09:34:55 -07:00
2010-08-21 12:47:05 -07:00
2010-08-28 15:42:44 -07:00
2010-08-06 09:25:50 -06:00
2010-08-04 15:31:02 -07:00
2010-08-12 09:11:31 -07:00
2010-08-15 17:34:20 -07:00
2010-08-12 09:11:31 -07:00
2010-08-24 10:42:09 -07:00
2010-08-12 09:58:33 -07:00
2010-08-11 11:38:03 +01:00
2010-08-12 09:11:31 -07:00
2010-08-21 00:34:45 -07:00
2010-08-06 09:25:50 -06:00
2010-08-20 09:34:56 -07:00
2010-08-28 13:55:31 -07:00
2010-08-04 16:12:01 +09:00
2010-08-18 12:44:31 +10:00
2010-08-06 12:25:06 -07:00
2010-08-23 18:15:38 -07:00
2010-08-03 09:04:11 +02:00
2010-08-05 13:53:33 -07:00
2010-08-28 13:55:31 -07:00
2010-08-04 11:47:58 -07:00
2010-08-20 09:34:54 -07:00
2010-08-13 20:54:53 +00:00
2010-08-28 13:55:31 -07:00
2010-08-09 21:14:08 +02:00