|
@@ -1655,6 +1655,9 @@ int drm_atomic_check_only(struct drm_atomic_state *state)
|
|
|
if (config->funcs->atomic_check)
|
|
|
ret = config->funcs->atomic_check(state->dev, state);
|
|
|
|
|
|
+ if (ret)
|
|
|
+ return ret;
|
|
|
+
|
|
|
if (!state->allow_modeset) {
|
|
|
for_each_new_crtc_in_state(state, crtc, crtc_state, i) {
|
|
|
if (drm_atomic_crtc_needs_modeset(crtc_state)) {
|
|
@@ -1665,7 +1668,7 @@ int drm_atomic_check_only(struct drm_atomic_state *state)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return ret;
|
|
|
+ return 0;
|
|
|
}
|
|
|
EXPORT_SYMBOL(drm_atomic_check_only);
|
|
|
|