diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index 1d30802..f65c5ba 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/gpu/drm/i915/intel_fb.c @@ -812,7 +812,12 @@ static int intelfb_single_fb_probe(struct drm_device *dev) * set configuration. */ list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { - struct intel_crtc *intel_crtc = to_intel_crtc(crtc); + struct intel_crtc *intel_crtc; + + if (!drm_helper_crtc_in_use(crtc) || !crtc->desired_mode) + continue; + + intel_crtc = to_intel_crtc(crtc); modeset = &intel_crtc->mode_set; modeset->fb = &intel_fb->base;