summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>2024-01-05 12:05:09 +0530
committerAlex Deucher <alexander.deucher@amd.com>2024-01-15 18:31:48 -0500
commit6616b5e1999146b1304abe78232af810080c67e3 (patch)
tree687e201a12550cacd8d1c38bd2c4bd9895460d99 /drivers/gpu/drm/amd/amdgpu
parentc9edcc1864f8529fd24441da40a1275232b5efc4 (diff)
downloadlinux-stable-6616b5e1999146b1304abe78232af810080c67e3.tar.gz
linux-stable-6616b5e1999146b1304abe78232af810080c67e3.tar.bz2
linux-stable-6616b5e1999146b1304abe78232af810080c67e3.zip
drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()'
In 'struct phm_ppm_table *ptr' allocation using kzalloc, an incorrect structure type is passed to sizeof() in kzalloc, larger structure types were used, thus using correct type 'struct phm_ppm_table' fixes the below: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:203 get_platform_power_management_table() warn: struct type mismatch 'phm_ppm_table vs _ATOM_Tonga_PPM_Table' Cc: Eric Huang <JinHuiEric.Huang@amd.com> Cc: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@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')
0 files changed, 0 insertions, 0 deletions