|
@@ -4854,6 +4854,9 @@ static int dm_atomic_check_plane_state_fb(struct drm_atomic_state *state,
|
|
return -EDEADLK;
|
|
return -EDEADLK;
|
|
|
|
|
|
crtc_state = drm_atomic_get_crtc_state(plane_state->state, crtc);
|
|
crtc_state = drm_atomic_get_crtc_state(plane_state->state, crtc);
|
|
|
|
+ if (IS_ERR(crtc_state))
|
|
|
|
+ return PTR_ERR(crtc_state);
|
|
|
|
+
|
|
if (crtc->primary == plane && crtc_state->active) {
|
|
if (crtc->primary == plane && crtc_state->active) {
|
|
if (!plane_state->fb)
|
|
if (!plane_state->fb)
|
|
return -EINVAL;
|
|
return -EINVAL;
|