linux-stable/sound/soc/generic
Samuel Holland 36a9d79e5e
ASoC: simple-card-utils: Avoid over-allocating DLCs
The allocation of the DAI link components (DLCs) passed the wrong
pointer to sizeof. Since simple_dai_props is much larger than
snd_soc_dai_link_component, there was no out of bounds access, only
wasted memory.

Fixes: f2138aed23 ("ASoC: simple-card-utils: enable flexible CPU/Codec/Platform")
Fixes: 050c7950fd ("ASoC: simple-card-utils: alloc dai_link information for CPU/Codec/Platform")
Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20210805050706.46833-1-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-08-05 15:38:56 +01:00
..
audio-graph-card.c ASoC: audio-graph: tidyup graph_parse_node() 2021-05-11 15:46:51 +01:00
Kconfig ASoC: Fix 7/8 spaces indentation in Kconfig 2020-11-17 17:08:45 +00:00
Makefile ASoC: simple-scu-card: remove simple-scu-card 2019-01-03 16:34:19 +00:00
simple-card-utils.c ASoC: simple-card-utils: Avoid over-allocating DLCs 2021-08-05 15:38:56 +01:00
simple-card.c ASoC: simple-card: Fill in driver name 2021-06-22 12:47:14 +01:00