aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/umc_v8_10.c
diff options
context:
space:
mode:
authorAlexey Kodanev <[email protected]>2022-10-04 08:14:02 +0000
committerAlex Deucher <[email protected]>2022-10-10 21:32:56 +0000
commitd2bd0831b51d1123fc86c019db3452d6a1ce5029 (patch)
tree42bf201070b8cedc378c45256cb0cf6ac4a8a636 /drivers/gpu/drm/amd/amdgpu/umc_v8_10.c
parentdrm/amd/pm: vega10_hwmgr: fix potential off-by-one overflow in 'performance_l... (diff)
downloadkernel-d2bd0831b51d1123fc86c019db3452d6a1ce5029.tar.gz
kernel-d2bd0831b51d1123fc86c019db3452d6a1ce5029.zip
drm/amd/pm: smu7_hwmgr: fix potential off-by-one overflow in 'performance_levels'
Since 'hardwareActivityPerformanceLevels' is set to the size of the 'performance_levels' array in smu7_hwmgr_backend_init(), using the '<=' assertion to check for the next index value is incorrect. Replace it with '<'. Detected using the static analysis tool - Svace. Fixes: 599a7e9fe1b6 ("drm/amd/powerplay: implement smu7 hwmgr to manager asics with smu ip version 7.") Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Alexey Kodanev <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/umc_v8_10.c')
0 files changed, 0 insertions, 0 deletions