aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorNicolas Iooss <[email protected]>2017-09-03 12:00:57 +0000
committerAlex Deucher <[email protected]>2017-11-07 21:40:48 +0000
commit0d1da3c15291c478193b7310dfef023add2249cc (patch)
treefe41bde1361b66c781007a89d5554cac79be8058 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrm/amd/powerplay: suppress KASAN out of bounds warning in vega10_populate_al... (diff)
downloadkernel-0d1da3c15291c478193b7310dfef023add2249cc.tar.gz
kernel-0d1da3c15291c478193b7310dfef023add2249cc.zip
drm/amd/powerplay: initialize a variable before using it
Function vega10_apply_state_adjust_rules() only initializes stable_pstate_sclk_dpm_percentage when data->registry_data.stable_pstate_sclk_dpm_percentage is not between 1 and 100. The variable is then used to compute stable_pstate_sclk, which therefore uses an uninitialized value. Fix this by initializing stable_pstate_sclk_dpm_percentage to data->registry_data.stable_pstate_sclk_dpm_percentage. This issue has been found while building the kernel with clang. The compiler reported a -Wsometimes-uninitialized warning. Reviewed-by: Alex Deucher <[email protected]> Fixes: f83a9991648b ("drm/amd/powerplay: add Vega10 powerplay support (v5)") Signed-off-by: Nicolas Iooss <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions