diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-06 11:24:07 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-12-08 09:33:02 +1000 |
commit | 541cc966915b6756e54c20eebe60ae957afdb537 (patch) | |
tree | f8e24751b5545577e1b480424e1514b5cfc4e042 /drivers/gpu/drm/drm_crtc_helper.c | |
parent | ea5d552c73707645c53d42e8a71c9a4d9cbb85c1 (diff) | |
download | kernel_goldelico_gta04-541cc966915b6756e54c20eebe60ae957afdb537.zip kernel_goldelico_gta04-541cc966915b6756e54c20eebe60ae957afdb537.tar.gz kernel_goldelico_gta04-541cc966915b6756e54c20eebe60ae957afdb537.tar.bz2 |
drm: Don't try and disable an encoder that was never enabled
Prevents code that assumes that the encoder is active when asked to be
disabled from dying a horrible death.
Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 7ca5935..bede10a 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -241,7 +241,7 @@ void drm_helper_disable_unused_functions(struct drm_device *dev) } list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { - if (!drm_helper_encoder_in_use(encoder)) { + if (encoder->crtc && !drm_helper_encoder_in_use(encoder)) { drm_encoder_disable(encoder); /* disconnector encoder from any connector */ encoder->crtc = NULL; |