Commit f7ec810a authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Zheng Zengkai
Browse files

ASoC: msm8916-wcd-digital: Check failure for devm_snd_soc_register_component

stable inclusion
from stable-v5.10.113
commit b6f474cd3097b9570d5c2c30075ca3506fbbcf33
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ISAH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b6f474cd3097b9570d5c2c30075ca3506fbbcf33



--------------------------------

[ Upstream commit e927b05f ]

devm_snd_soc_register_component() may fails, we should check the error
and do the corresponding error handling.

Fixes: 150db8c5 ("ASoC: codecs: Add msm8916-wcd digital codec")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220403115239.30140-1-linmq006@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 83ab10a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment