diff options
author | Hersen Wu <hersenxs.wu@amd.com> | 2024-04-25 09:24:44 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-05-02 16:18:18 -0400 |
commit | 188fd1616ec43033cedbe343b6579e9921e2d898 (patch) | |
tree | 5b4f3b471aa8c580eef17fdf40cdc9c9362f501e /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 922c2877827dcc474f3079e464773ab31ac13b79 (diff) |
drm/amd/display: Fix index may exceed array range within fpu_update_bw_bounding_box
[Why]
Coverity reports OVERRUN warning. soc.num_states could
be 40. But array range of bw_params->clk_table.entries is 8.
[How]
Assert if soc.num_states greater than 8.
Reviewed-by: Alex Hung <alex.hung@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions