linux/sound/soc/intel
Hans de Goede 7d99a70b65
ASoC: Intel: Boards: Fix NULL pointer deref in BYT/CHT boards
Since commit 13f58267cd ("ASoC: soc.h: don't create dummy Component
via COMP_DUMMY()") dummy snd_soc_dai_link.codecs entries no longer
have a name set.

This means that when looking for the codec dai_link the machine
driver can no longer unconditionally run strcmp() on
snd_soc_dai_link.codecs[0].name since this may now be NULL.

Add a check for snd_soc_dai_link.codecs[0].name being NULL to all
BYT/CHT machine drivers to avoid NULL pointer dereferences in
their probe() methods.

Fixes: 13f58267cd ("ASoC: soc.h: don't create dummy Component via COMP_DUMMY()")
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240210134400.24913-2-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-02-11 16:57:23 +00:00
..
atom ASoC: intel: convert not to use asoc_xxx() 2023-09-26 17:18:40 +02:00
avs ASoC: Intel: avs: Fix dynamic port assignment when TDM is set 2024-02-07 15:23:49 +00:00
boards ASoC: Intel: Boards: Fix NULL pointer deref in BYT/CHT boards 2024-02-11 16:57:23 +00:00
catpt ASoC: intel: convert not to use asoc_xxx() 2023-09-26 17:18:40 +02:00
common ASoC: Updates for v6.8 2024-01-08 08:18:02 +01:00
keembay ASoC: Use device_get_match_data() 2023-10-09 13:13:59 +01:00
skylake Merge branch 'topic/cs35l41' into for-next 2023-12-29 15:14:07 +01:00
Kconfig ASoC: Intel: avs: Probe compress operations 2022-12-05 14:05:27 +00:00
Makefile ASoC: Intel: Introduce AVS driver 2022-03-11 16:23:54 +00:00