diff options
author | Alexey Kodanev <aleksei.kodanev@bell-sw.com> | 2022-10-04 10:14:01 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-10-10 23:32:56 +0200 |
commit | 2cc4a5914ce952d6fc83b0f8089a23095ad4f677 (patch) | |
tree | 9247619973ef4714b7617bd7e800e4b1e3bcf9a2 /drivers/platform | |
parent | drm/amdgpu: fix SDMA suspend/resume on SR-IOV (diff) | |
download | linux-2cc4a5914ce952d6fc83b0f8089a23095ad4f677.tar.xz linux-2cc4a5914ce952d6fc83b0f8089a23095ad4f677.zip |
drm/amd/pm: vega10_hwmgr: fix potential off-by-one overflow in 'performance_levels'
Since 'hardwareActivityPerformanceLevels' is set to the size of the
'performance_levels' array in vega10_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: f83a9991648b ("drm/amd/powerplay: add Vega10 powerplay support (v5)")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions