]> Git Repo - linux.git/commitdiff
drm/dp_mst: Don't return error code when crtc is null
authorBhawanpreet Lakha <[email protected]>
Fri, 14 Aug 2020 17:01:40 +0000 (13:01 -0400)
committerLyude Paul <[email protected]>
Mon, 17 Aug 2020 15:54:10 +0000 (11:54 -0400)
[Why]
In certain cases the crtc can be NULL and returning -EINVAL causes
atomic check to fail when it shouln't. This leads to valid
configurations failing because atomic check fails.

[How]
Don't early return if crtc is null

Signed-off-by: Bhawanpreet Lakha <[email protected]>
Reviewed-by: Lyude Paul <[email protected]>
[added stable cc]
Signed-off-by: Lyude Paul <[email protected]>
Fixes: 8ec046716ca8 ("drm/dp_mst: Add helper to trigger modeset on affected DSC MST CRTCs")
Cc: <[email protected]> # v5.6+
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_dp_mst_topology.c

index 1e26b89628f98c7d4e4b3bed44078c6c088165fb..0a2f0b5c7a44642145c417c43f4e534395971bb9 100644 (file)
@@ -4990,8 +4990,8 @@ int drm_dp_mst_add_affected_dsc_crtcs(struct drm_atomic_state *state, struct drm
 
                crtc = conn_state->crtc;
 
-               if (WARN_ON(!crtc))
-                       return -EINVAL;
+               if (!crtc)
+                       continue;
 
                if (!drm_dp_mst_dsc_aux_for_port(pos->port))
                        continue;
This page took 0.062259 seconds and 4 git commands to generate.