linux/sound/soc/intel/avs
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
..
boards ASoC: hdaudio.c: Add missing check for devm_kstrdup 2023-09-15 13:16:20 +01:00
apl.c ASoC: Intel: avs: Access path components under lock 2023-05-22 11:18:21 +01:00
avs.h ASoC: Intel: avs: Fix avs_path_module::instance_id size 2023-05-22 11:18:25 +01:00
board_selection.c ASoC: SOF: Intel: add LunarLake support 2023-08-08 13:28:53 +01:00
cldma.c ASoC: Intel: avs: Replace hardcodes with SD_CTL_STREAM_RESET 2022-07-08 18:53:26 +01:00
cldma.h ASoC: Intel: avs: Implement CLDMA transfer 2022-03-11 16:24:08 +00:00
control.c ASoC: Intel: avs: Fix module lookup 2023-05-22 11:18:20 +01:00
control.h ASoC: Intel: avs: Add control volume operations 2022-12-25 23:32:59 +00:00
core.c ASoC: Intel: avs: Convert to PCI device IDs defines 2023-07-18 14:22:21 +02:00
debugfs.c ASoC: Intel: avs: Allow for dumping debug window snapshot 2022-12-05 14:05:33 +00:00
dsp.c ASoC: Intel: avs: Fix avs_path_module::instance_id size 2023-05-22 11:18:25 +01:00
ipc.c ASoC: Intel: avs: Introduce avs_log_buffer_status_locked() 2022-12-05 14:05:21 +00:00
loader.c ASoC: Intel: avs: Enact power gating policy 2022-10-28 13:04:39 +01:00
Makefile ASoC: Intel: avs: Add control volume operations 2022-12-25 23:32:59 +00:00
messages.c ASoC: Intel: avs: Add peakvol runtime-parameter requests 2022-12-25 23:32:58 +00:00
messages.h ASoC: Intel: avs: Fix declaration of enum avs_channel_config 2023-05-22 11:18:23 +01:00
path.c ASoC: Intel: avs: Use struct_size for struct avs_modcfg_ext size 2023-03-05 23:38:32 +00:00
path.h ASoC: Intel: avs: Fix avs_path_module::instance_id size 2023-05-22 11:18:25 +01:00
pcm.c ASoC: Intel: avs: Provide support for fallback topology 2023-09-05 17:28:07 +01:00
probes.c ASoC: intel: merge DAI call back functions into ops 2023-08-14 13:10:19 +01:00
registers.h ASoC: Intel: avs: Allow for dumping debug window snapshot 2022-12-05 14:05:33 +00:00
skl.c ASoC: Intel: avs: Drop usage of debug members in non-debug code 2022-12-05 14:05:25 +00:00
topology.c ASoC: intel: avs: refactor strncpy usage in topology 2023-07-26 12:49:44 +01:00
topology.h ASoC: Intel: avs: Parse control tuples 2022-12-25 23:33:03 +00:00
trace.c ASoC: Intel: avs: Use min_t instead of min with cast 2023-01-13 12:30:29 +00:00
trace.h ASoC: Intel: avs: Event tracing 2022-05-17 11:58:01 +01:00
utils.c ASoC: Intel: avs: Drop usage of debug members in non-debug code 2022-12-05 14:05:25 +00:00