linux/sound/soc/intel
Peter Ujfalusi ac4b32cb59 ASoC: Intel: sof_sdw: Fix unlikely uninitialized variable use in create_sdw_dailinks()
commit 4363f02a39 upstream.

Initialize current_be_id to 0 to handle the unlikely case when there are
no devices connected to a DAI.
In this case create_sdw_dailink() would return without touching the passed
pointer to current_be_id.

Found by gcc -fanalyzer

Fixes: 59bf457d80 ("ASoC: intel: sof_sdw: Factor out SoundWire DAI creation")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20250303065552.78328-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-03-22 12:54:25 -07:00
..
atom ASoC: Intel: sst: Fix used of uninitialized ctx to log an error 2024-10-28 16:44:52 +00:00
avs ALSA: hda: Fix compilation of snd_hdac_adsp_xxx() helpers 2025-02-08 09:57:32 +01:00
boards ASoC: Intel: sof_sdw: Fix unlikely uninitialized variable use in create_sdw_dailinks() 2025-03-22 12:54:25 -07:00
catpt ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
common ASoC: Intel: soc-acpi-intel-mtl-match: declare adr as ull 2025-03-22 12:54:18 -07:00
keembay ASoC: intel: fix module autoloading 2024-08-26 15:52:06 +01:00
Kconfig ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00
Makefile ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00