drm/amd/display: fix exit from amdgpu_dm_atomic_check() abruptly
Subsystems (3)
PATCH 1/1 drm/amd/display: fix exit from amdgpu_dm_atomic_check() abruptly
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 <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
@@ -10801,7 +10801,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)
Signature · 1 line
2.17.1
Quoted 4 lines · Shirish S
make action upon failure in "
drm_atomic_add_affected_connectors()" consistent with the rest of failures inamdgpu_dm_atomic_check().Signed-off-by Shirish S <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 18 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-1@@ -10801,7 +10801,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)