summaryrefslogtreecommitdiffstats
path: root/scripts/bin2c.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 12:21:41 -0400
commit3dfe85fa87b2a26bdbd292b66653bba065cf9941 (patch)
tree7d85235b7042fd3d3281121d7cecf8f1b2b63a68 /scripts/bin2c.c
parent19965d8259fdabc6806da92adda49684f5bcbec5 (diff)
downloadlinux-3dfe85fa87b2a26bdbd292b66653bba065cf9941.tar.bz2
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> Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/bin2c.c')
0 files changed, 0 insertions, 0 deletions