drm/amd/display: Catch failures for amdgpu_dm_commit_zero_streams()
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 18 Feb 2025 04:58:30 +0000 (22:58 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Mar 2025 15:41:21 +0000 (10:41 -0500)
commit3cf7a0bc87f028b6bc63a43a80d9d6026ae4d85f
tree467137e012c5b3c69a6ae66ed3343c35d1980d35
parent65890cad2edb53b6c3fdb289fbf071faac842070
drm/amd/display: Catch failures for amdgpu_dm_commit_zero_streams()

amdgpu_dm_commit_zero_streams() returns a DC error code that isn't
checked. Add an explicit check to this and fail dm_suspend() if it
is not DC_OK.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c