summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAaron Ma <aaron.ma@canonical.com>2026-05-28 11:21:10 +0300
committerMark Brown <broonie@kernel.org>2026-06-08 21:13:05 +0300
commit4d992e63f52d58f52b724606c60ae7b37a1c582f (patch)
tree5ef90d8c3d4083536d8fe87fe454de350c24e045 /include/linux
parentd49ecdf327cc91062d2f80996a163cf65fda1e60 (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions