ASoC: core: fix wrong size kzalloc for rtd's components member
authorlishqchn <lishqchn@qq.com>
Tue, 8 Nov 2022 04:24:56 +0000 (12:24 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 15 Nov 2022 14:16:19 +0000 (14:16 +0000)
commit66a796c04b639e2658b4d820dd5fbc842c8c3aae
tree567ed0c5892070127b640751378cf24ded94f303
parent710ccba0cf0e12c7c29d862fd6192d8fe46c5fe7
ASoC: core: fix wrong size kzalloc for rtd's components member

The actual space for struct snd_soc_component has been allocated by
snd_soc_register_component, here rtd's components are pointers to
components, I replace the base size from *component to component.

Signed-off-by: lishqchn <lishqchn@qq.com>
Link: https://lore.kernel.org/r/tencent_59850BB028662B6F2D49D7F3624AB84CCF05@qq.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c