drm/amd/display: fix exit from amdgpu_dm_atomic_check() abruptly
authorShirish S <shirish.s@amd.com>
Mon, 8 Nov 2021 13:51:46 +0000 (19:21 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Nov 2021 22:08:00 +0000 (17:08 -0500)
make action upon failure in "drm_atomic_add_affected_connectors()"
consistent with the rest of failures in amdgpu_dm_atomic_check().

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-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 94d225931d51925db180c533f3109e3314342a05..c1bbed7339fe02d0e4d769eb77843d8949da0835 100644 (file)
@@ -10802,7 +10802,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
 
                ret = drm_atomic_add_affected_connectors(state, crtc);
                if (ret)
-                       return ret;
+                       goto fail;
 
                ret = drm_atomic_add_affected_planes(state, crtc);
                if (ret)