aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2017-03-15 22:05:20 -0400
committerAlex Deucher <[email protected]>2017-03-29 23:53:59 -0400
commitd319c2bcc6b5d716e10f5cb3efe0adf43d3b06ed (patch)
tree5b3d8125ed7eee452e89c365b834afa1b897dcdb
parent8085c699688dbadbf5d8ad3e1c14fc72498d2502 (diff)
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;
}