aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2024-12-12 10:57:42 +0000
committerMark Brown <broonie@kernel.org>2024-12-12 11:08:49 +0000
commit255cc582e6e16191a20d54bcdbca6c91d3e90c5e (patch)
tree33a9e9e3e2cef6c2d1716711c671b79e0b03a354 /drivers/platform/x86/intel/pmt/class.c
parentbb76e82bfe57fdd1fe595cb0ccd33159df49ed09 (diff)
downloadlinux-255cc582e6e16191a20d54bcdbca6c91d3e90c5e.tar.gz
linux-255cc582e6e16191a20d54bcdbca6c91d3e90c5e.tar.bz2
linux-255cc582e6e16191a20d54bcdbca6c91d3e90c5e.zip
ASoC: Intel: sof_sdw: Add space for a terminator into DAIs array
The code uses the initialised member of the asoc_sdw_dailink struct to determine if a member of the array is in use. However in the case the array is completely full this will lead to an access 1 past the end of the array, expand the array by one entry to include a space for a terminator. Fixes: 27fd36aefa00 ("ASoC: Intel: sof-sdw: Add new code for parsing the snd_soc_acpi structs") Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20241212105742.1508574-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions