diff options
| author | Alex Hung <[email protected]> | 2024-04-24 23:08:04 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-02 20:18:18 +0000 |
| commit | 8e2734bf444767fed787305ccdcb36a2be5301a2 (patch) | |
| tree | db8ce61541b0ccd867bdd813f8ab163d7d4a8130 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amd/display: Skip plane when not found by stream id (diff) | |
| download | kernel-8e2734bf444767fed787305ccdcb36a2be5301a2.tar.gz kernel-8e2734bf444767fed787305ccdcb36a2be5301a2.zip | |
drm/amd/display: Ensure index calculation will not overflow
[WHY & HOW]
Make sure vmid0p72_idx, vnom0p8_idx and vmax0p9_idx calculation will
never overflow and exceess array size.
This fixes 3 OVERRUN and 1 INTEGER_OVERFLOW issues reported by Coverity.
Reviewed-by: Harry Wentland <[email protected]>
Acked-by: Tom Chung <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
