diff options
author | Ma Jun <Jun.Ma2@amd.com> | 2024-04-28 15:58:10 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-05-08 15:17:07 -0400 |
commit | f683f24093dd94a831085fe0ea8e9dc4c6c1a2d1 (patch) | |
tree | 8854f466c39b99c49bd734ed907d0d64c64cbf20 /drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | |
parent | 0991e49d2b73bb4189f83a49eb41cdf16976bbf6 (diff) |
drm/amdgpu/pm: Fix the param type of set_power_profile_mode
Function .set_power_profile_mode need an array as input
parameter. So define variable workload as an array to fix
the below coverity warning.
"Passing &workload to function hwmgr->hwmgr_func->set_power_profile_mode
which uses it as an array. This might corrupt or misinterpret adjacent
memory locations"
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
0 files changed, 0 insertions, 0 deletions