diff options
| author | Aaron Ma <aaron.ma@canonical.com> | 2026-05-28 11:21:10 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-08 21:13:05 +0300 |
| commit | 4d992e63f52d58f52b724606c60ae7b37a1c582f (patch) | |
| tree | 5ef90d8c3d4083536d8fe87fe454de350c24e045 /include/linux/debugobjects.h | |
| parent | d49ecdf327cc91062d2f80996a163cf65fda1e60 (diff) | |
| download | linux-4d992e63f52d58f52b724606c60ae7b37a1c582f.tar.xz | |
ASoC: amd: acp-sdw-sof: Bound DAI link iteration
create_sdw_dailinks() walks sof_dais until it finds an entry with
initialised cleared, but sof_dais is allocated with exactly num_ends
entries. If all entries are initialised, the loop reads past the end of
the array.
Pass the allocated entry count to create_sdw_dailinks() and stop before
reading past the array.
Fixes: 6d8348ddc56e ("ASoC: amd: acp: refactor SoundWire machine driver code")
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Link: https://patch.msgid.link/20260528082110.915549-2-aaron.ma@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
