drm/amdgpu/vi: add missing error handling when setting uvd dclk
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Mar 2017 02:05:20 +0000 (22:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:59 +0000 (23:53 -0400)
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vi.c

index 28385b8279da301fbcffa9d4542b7ad4fcfd975b..eff123b5f2e2199b9929af2c2a5aa9d28a3f61f6 100644 (file)
@@ -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;
 }