]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm/amd/display: Fix one more place for dc_stream_state leak
authorHarry Wentland <harry.wentland@amd.com>
Tue, 12 Sep 2017 16:10:25 +0000 (17:10 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:51:54 +0000 (16:51 -0400)
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 0d1b41298990d17b56cbcdc532d4e07524911629..58143fe49e4a1d282711ce209e08fe160eab243f 100644 (file)
@@ -4484,7 +4484,7 @@ static int dm_update_crtcs_state(struct dc *dc,
                         * 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;