From: Alex Deucher Date: Thu, 16 Mar 2017 02:05:20 +0000 (-0400) Subject: drm/amdgpu/vi: add missing error handling when setting uvd dclk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d319c2bcc6b5d716e10f5cb3efe0adf43d3b06ed;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu/vi: add missing error handling when setting uvd dclk Reviewed-by: Christian König Reviewed-by: Emil Velikov Reported-by: David Binderman Signed-off-by: Alex Deucher --- 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; }