aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2022-04-19 13:03:12 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-05-04 09:51:40 -0400
commit0ee42ab70118ace9a09861bccaaf43e9779fa91e (patch)
treeefae47f7865d28defdb003fb0f5fa246d291b4f9 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/amdgpu: Free user pages if amdgpu_cs_parser_bos failed (diff)
downloadlinux-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