mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>