linux/sound/soc/intel
Chen Ni c04efbfd76
ASoC: hdaudio.c: Add missing check for devm_kstrdup
Because of the potential failure of the devm_kstrdup(), the
dl[i].codecs->name could be NULL.
Therefore, we need to check it and return -ENOMEM in order to transfer
the error.

Fixes: 97030a4337 ("ASoC: Intel: avs: Add HDAudio machine board")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20230915021344.3078-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-09-15 13:16:20 +01:00
..
atom ASoC: intel: merge DAI call back functions into ops 2023-08-14 13:10:19 +01:00
avs ASoC: hdaudio.c: Add missing check for devm_kstrdup 2023-09-15 13:16:20 +01:00
boards ASoC: Intel: RPL/MTL machine updates for 6.6 2023-08-15 19:22:03 +01:00
catpt ASoC: intel: merge DAI call back functions into ops 2023-08-14 13:10:19 +01:00
common ASoC: Intel: RPL/MTL machine updates for 6.6 2023-08-15 19:22:03 +01:00
keembay ASoC: intel: merge DAI call back functions into ops 2023-08-14 13:10:19 +01:00
skylake ASoC: Intel: Skylake: Convert to PCI device IDs defines 2023-07-18 14:22:23 +02: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