From: Harry Wentland <harry.wentland@amd.com>
Date: Tue, 12 Sep 2017 17:10:25 +0100
Subject: drm/amd/display: Fix one more place for dc_stream_state leak
Git-commit: 1bed4d09a4cc5a7d4449da86832d9bd816ae44ff
Patch-mainline: v4.15-rc1
References: FATE#326289 FATE#326079 FATE#326049 FATE#322398 FATE#326166
One more thing that happened due to uneven applying of patches. This
mirrors what Darren Salt fixed.
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Petr Tesarik <ptesarik@suse.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -4484,7 +4484,7 @@ static int dm_update_crtcs_state(struct
* TODO: need to dig out the root cause of that
*/
if (!aconnector || (!aconnector->dc_sink && aconnector->mst_port))
- continue;
+ goto next_crtc;
if (modereset_required(new_crtc_state))
goto next_crtc;