linux/sound/soc/intel
Richard Fitzgerald a5416c0fc9 ASoC: Intel: sof_sdw: Prevent jump to NULL add_sidecar callback
[ Upstream commit 87cab86925 ]

In create_sdw_dailink() check that sof_end->codec_info->add_sidecar
is not NULL before calling it.

The original code assumed that if include_sidecar is true, the codec
on that link has an add_sidecar callback. But there could be other
codecs on the same link that do not have an add_sidecar callback.

Fixes: da52441802 ("ASoC: Intel: sof_sdw: Add callbacks to register sidecar devices")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20250919140235.1071941-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 12:04:03 +02:00
..
atom ASoC: Intel: Remove redundant pm_runtime_mark_last_busy() calls 2025-07-04 19:28:20 +01:00
avs ASoC: Fixes for v6.17 2025-08-06 20:20:25 +02:00
boards ASoC: Intel: sof_sdw: Prevent jump to NULL add_sidecar callback 2025-10-15 12:04:03 +02:00
catpt ASoC: Intel: catpt: Expose correct bit depth to userspace 2025-09-09 12:41:59 +01:00
common ASoC: Intel: PTL: Add entry for HDMI-In capture support to non-I2S codec boards. 2025-09-15 12:49:12 +01:00
keembay ASoC: Use of_property_present() for non-boolean properties 2025-01-09 18:50:14 +00:00
Kconfig ASoC: intel: Standardize ASoC menu 2025-06-24 01:01:26 +01:00
Makefile ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00