diff options
| author | Mark Brown <broonie@kernel.org> | 2026-09-16 20:08:20 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-16 20:08:20 +0100 |
| commit | fa899ba9b1bfa0481a477c7a05a1a5d484285e7f (patch) | |
| tree | af07c26b0b3c084d4af35aa197188dabbd1052db /scripts/patch-kernel | |
| parent | 3482062c786ce4233f8ed3224d824184f53ec154 (diff) | |
| parent | d57616f8be5601d210bbb0f677b9cb88a5186c3c (diff) | |
| download | linux-stable-fa899ba9b1bfa0481a477c7a05a1a5d484285e7f.tar.gz linux-stable-fa899ba9b1bfa0481a477c7a05a1a5d484285e7f.zip | |
ASoC: amd: acp: SoundWire machine driver fixes
Vijendar Mukunda <Vijendar.Mukunda@amd.com> says:
This series fixes four defects in the AMD ACP SoundWire machine drivers
(acp-sdw-legacy-mach.c and acp-sdw-sof-mach.c).
A bounds check is added to validate the SoundWire link ID before it is
used as an array index in create_sdw_dailink(), preventing out-of-bounds
access when an unexpected link_mask value is encountered. The codec
config count in the SOF machine driver is refactored to use a dedicated
variable rather than reusing the endpoint-count variable for two
purposes, making the intent clearer and avoiding a stale value being
passed to the codec config array. An operator-precedence bug in the
ffs(link_mask - 1) expression is corrected to ffs(link_mask) - 1,
ensuring the link ID is derived from the correct bit position. Finally,
the SOF machine driver card name is shortened to fit within the 16-byte
snd_card driver[] field and eliminate a compile-time warning.
Link: https://patch.msgid.link/20260910161728.1452808-1-Vijendar.Mukunda@amd.com
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
