Commit ed5f63fa authored by Herve Codina's avatar Herve Codina Committed by sanglipeng
Browse files

ASoC: simple-card: Add missing of_node_put() in case of error

stable inclusion
from stable-v5.10.186
commit fa08753c2d049442cb4c990759befd3e4effdc0b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8J4KH

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



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

[ Upstream commit 8938f75a ]

In the error path, a of_node_put() for platform is missing.
Just add it.

Signed-off-by: default avatarHerve Codina <herve.codina@bootlin.com>
Acked-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20230523151223.109551-9-herve.codina@bootlin.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent a1c10d26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment