linux/drivers/gpu/drm/amd/pm
Dan Carpenter b758850715 drm/amd/pm: Fix memory some memory corruption
The "od_table" is a pointer to a large struct, but this code is doing
pointer math as if it were pointing to bytes.  It results in writing
far outside the struct.

Fixes: 2e8452ea4e ("drm/amd/pm: fulfill the OD support for SMU13.0.0")
Fixes: 2a9aa52e46 ("drm/amd/pm: fulfill the OD support for SMU13.0.7")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-06-09 12:41:48 -04:00
..
inc drm/amd/pm: update SMU13 header files for coming OD support 2023-06-09 12:36:14 -04:00
legacy-dpm drm/amd/pm: resolve reboot exception for si oland 2023-06-09 10:57:03 -04:00
powerplay drm/amdgpu: add xcc index argument to rlc safe_mode func (v4) 2023-04-18 16:28:55 -04:00
swsmu drm/amd/pm: Fix memory some memory corruption 2023-06-09 12:41:48 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_pm.c drm/amd/pm: fulfill SMU13 OD settings init and restore 2023-06-09 12:37:06 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00