diff options
author | 2022-04-19 13:03:12 -0400 | |
---|---|---|
committer | 2022-05-04 09:51:40 -0400 | |
commit | 0ee42ab70118ace9a09861bccaaf43e9779fa91e (patch) | |
tree | efae47f7865d28defdb003fb0f5fa246d291b4f9 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | drm/amdgpu: Free user pages if amdgpu_cs_parser_bos failed (diff) | |
download | linux-rng-0ee42ab70118ace9a09861bccaaf43e9779fa91e.tar.xz linux-rng-0ee42ab70118ace9a09861bccaaf43e9779fa91e.zip |
drm/amd/display: Avoid reading audio pattern past AUDIO_CHANNELS_COUNT
A faulty receiver might report an erroneous channel count. We
should guard against reading beyond AUDIO_CHANNELS_COUNT as
that would overflow the dpcd_pattern_period array.
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions