]> git.baikalelectronics.ru Git - kernel.git/commit
drm/display/dp_mst: Fix drm_dp_mst_add_affected_dsc_crtcs() return code
authorLyude Paul <lyude@redhat.com>
Mon, 14 Nov 2022 22:17:53 +0000 (17:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Nov 2022 21:38:35 +0000 (16:38 -0500)
commitd4252bf848d2517fb5a9d69d7aba1acbb8fcb7b4
treec61724727be8798a72e8d836306d5cb8c84ea648
parentb7041cbef257e9baa612ee299a8563cfb34d4206
drm/display/dp_mst: Fix drm_dp_mst_add_affected_dsc_crtcs() return code

Looks like that we're accidentally dropping a pretty important return code
here. For some reason, we just return -EINVAL if we fail to get the MST
topology state. This is wrong: error codes are important and should never
be squashed without being handled, which here seems to have the potential
to cause a deadlock.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Wayne Lin <Wayne.Lin@amd.com>
Fixes: 17fee318a88e ("drm/dp_mst: Add helper to trigger modeset on affected DSC MST CRTCs")
Cc: <stable@vger.kernel.org> # v5.6+
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/display/drm_dp_mst_topology.c