summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2026-09-10 21:46:46 +0530
committerMark Brown <broonie@kernel.org>2026-09-16 20:08:16 +0100
commit29218a4d11a31a8157389bc2b9e62dd768d7ea42 (patch)
tree07d249d8d954c89c54ec8248ec719ed266b3c67f /scripts/Makefile.thinlto
parentfd73f4a6659897191fa0d40695fe370925dd3780 (diff)
downloadlinux-29218a4d11a31a8157389bc2b9e62dd768d7ea42.tar.gz
linux-29218a4d11a31a8157389bc2b9e62dd768d7ea42.zip
ASoC: amd: acp: bounds-check SoundWire link ID in machine drivers
Add a bounds check in create_sdw_dailink() to validate that the SoundWire link ID derived from link_mask does not exceed the maximum supported by the platform. If the link ID is out of range or link_mask is zero, log an error and return -EINVAL to prevent accessing invalid CPU pin ID tables. Applied to both acp-sdw-sof-mach.c and acp-sdw-legacy-mach.c. Fixes: 6d8348ddc56e ("ASoC: amd: acp: refactor SoundWire machine driver code") Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Link: https://patch.msgid.link/20260910161728.1452808-2-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions