aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/drm_crtc_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index db0237dec6c4..e7e6c25b560c 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -842,7 +842,8 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
842 /* If the encoder is reused for another connector, then 842 /* If the encoder is reused for another connector, then
843 * the appropriate crtc will be set later. 843 * the appropriate crtc will be set later.
844 */ 844 */
845 connector->encoder->crtc = NULL; 845 if (connector->encoder)
846 connector->encoder->crtc = NULL;
846 connector->encoder = new_encoder; 847 connector->encoder = new_encoder;
847 } 848 }
848 } 849 }