aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2017-03-16 02:05:20 +0000
committerAlex Deucher <[email protected]>2017-03-30 03:53:59 +0000
commitd319c2bcc6b5d716e10f5cb3efe0adf43d3b06ed (patch)
tree5b3d8125ed7eee452e89c365b834afa1b897dcdb
parentdrm/amdgpu/vi: remove duplicate CG flags (diff)
downloadkernel-d319c2bcc6b5d716e10f5cb3efe0adf43d3b06ed.tar.gz
kernel-d319c2bcc6b5d716e10f5cb3efe0adf43d3b06ed.zip
drm/amdgpu/vi: add missing error handling when setting uvd dclk
Reviewed-by: Christian König <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reported-by: David Binderman <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index 28385b8279da..eff123b5f2e2 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -795,6 +795,8 @@ static int vi_set_uvd_clocks(struct amdgpu_device *adev, u32 vclk, u32 dclk)
return r;
r = vi_set_uvd_clock(adev, dclk, ixCG_DCLK_CNTL, ixCG_DCLK_STATUS);
+ if (r)
+ return r;
return 0;
}