Skip to content
Snippets Groups Projects
Commit 2ee394a1 authored by bhawanpreet lakha's avatar bhawanpreet lakha Committed by Yang Xiong
Browse files

drm/dp_mst: Don't return error code when crtc is null


[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: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
[added stable cc]
Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
Fixes: 8ec04671 ("drm/dp_mst: Add helper to trigger modeset on affected DSC MST CRTCs")
Cc: <stable@vger.kernel.org> # v5.6+
Link: https://patchwork.freedesktop.org/patch/msgid/20200814170140.24917-1-Bhawanpreet.Lakha@amd.com
parent 28c43ecf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment