Commit 3dfe85f
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.org1 parent 19965d8 commit 3dfe85f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4440 | 4440 | | |
4441 | 4441 | | |
4442 | 4442 | | |
4443 | | - | |
| 4443 | + | |
4444 | 4444 | | |
4445 | 4445 | | |
4446 | 4446 | | |
| |||
0 commit comments