aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorAlex Hung <[email protected]>2024-07-17 09:17:56 -0600
committerAlex Deucher <[email protected]>2024-07-27 17:34:20 -0400
commita15268787b79fd183dd526cc16bec9af4f4e49a1 (patch)
tree08adfa5eb6b14174a391315b0502c0ae2914899d /lib/netdev-notifier-error-inject.c
parentcead9ac8b0992ae2659b637e86a0da7cfeb5e267 (diff)
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 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions