diff options
| author | Srinivasan Shanmugam <[email protected]> | 2024-01-05 06:35:09 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-01-15 23:31:48 +0000 |
| commit | 6616b5e1999146b1304abe78232af810080c67e3 (patch) | |
| tree | 687e201a12550cacd8d1c38bd2c4bd9895460d99 /drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c | |
| parent | drm/amdgpu: update ATHUB_MISC_CNTL offset for athub v3.3 (diff) | |
| download | kernel-6616b5e1999146b1304abe78232af810080c67e3.tar.gz kernel-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 <[email protected]>
Cc: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c')
0 files changed, 0 insertions, 0 deletions
