diff options
| author | Alex Hung <[email protected]> | 2024-07-17 15:17:56 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-07-27 21:34:20 +0000 |
| commit | a15268787b79fd183dd526cc16bec9af4f4e49a1 (patch) | |
| tree | 08adfa5eb6b14174a391315b0502c0ae2914899d /drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |
| parent | drm/amd/display: Use correct cm_helper function (diff) | |
| download | kernel-a15268787b79fd183dd526cc16bec9af4f4e49a1.tar.gz kernel-a15268787b79fd183dd526cc16bec9af4f4e49a1.zip | |
drm/amd/display: Avoid overflow assignment in link_dp_cts
sampling_rate is an uint8_t but is assigned an unsigned int, and thus it
can overflow. As a result, sampling_rate is changed to uint32_t.
Similarly, LINK_QUAL_PATTERN_SET has a size of 2 bits, and it should
only be assigned to a value less or equal than 4.
This fixes 2 INTEGER_OVERFLOW issues reported by Coverity.
Signed-off-by: Alex Hung <[email protected]>
Reviewed-by: Wenjing Liu <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
0 files changed, 0 insertions, 0 deletions
