Patch "drm/display/dp_mst: Fix drm_dp_mst_add_affected_dsc_crtcs() return code" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/display/dp_mst: Fix drm_dp_mst_add_affected_dsc_crtcs() return code

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-display-dp_mst-fix-drm_dp_mst_add_affected_dsc_c.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a7e499e22048e054a36f4b1d2abbf1d142291558
Author: Lyude Paul <lyude@xxxxxxxxxx>
Date:   Mon Nov 14 17:17:53 2022 -0500

    drm/display/dp_mst: Fix drm_dp_mst_add_affected_dsc_crtcs() return code
    
    [ Upstream commit 2f3a1273862cb82cca227630cc7f04ce0c94b6bb ]
    
    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@xxxxxxxxxx>
    Reviewed-by: Wayne Lin <Wayne.Lin@xxxxxxx>
    Fixes: 8ec046716ca8 ("drm/dp_mst: Add helper to trigger modeset on affected DSC MST CRTCs")
    Cc: <stable@xxxxxxxxxxxxxxx> # v5.6+
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c
index 4272cd3622f8..0feeac52e4eb 100644
--- a/drivers/gpu/drm/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/drm_dp_mst_topology.c
@@ -5238,7 +5238,7 @@ int drm_dp_mst_add_affected_dsc_crtcs(struct drm_atomic_state *state, struct drm
 	mst_state = drm_atomic_get_mst_topology_state(state, mgr);
 
 	if (IS_ERR(mst_state))
-		return -EINVAL;
+		return PTR_ERR(mst_state);
 
 	list_for_each_entry(pos, &mst_state->vcpis, next) {
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux