Skip to content
Commit 8b849265 authored by Chancel Liu's avatar Chancel Liu Committed by Greg Kroah-Hartman
Browse files

ASoC: soc-core.c: Skip dummy codec when adding platforms



[ Upstream commit 23fb6bc2 ]

When pcm_runtime is adding platform components it will scan all
registered components. In case of DPCM FE/BE some DAI links will
configure dummy platform. However both dummy codec and dummy platform
are using "snd-soc-dummy" as component->name. Dummy codec should be
skipped when adding platforms otherwise there'll be overflow and UBSAN
complains.

Reported-by: default avatarZhipeng Wang <zhipeng.wang_1@nxp.com>
Signed-off-by: default avatarChancel Liu <chancel.liu@nxp.com>
Link: https://msgid.link/r/20240305065606.3778642-1-chancel.liu@nxp.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 103c0f94
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment