ASoC: ti: j721e-evm: Fix refcount leak in j721e_soc_probe_*
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 12 May 2022 11:13:30 +0000 (15:13 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:59 +0000 (10:22 +0200)
commit2a3966b950b37a6f10c5f9caee15b4cdcf5a7413
tree8a97a4caeb7de277a1e9a3cae7d7639894d764a2
parentcf31d1ef38399ad107c9d1670ee22768d5296646
ASoC: ti: j721e-evm: Fix refcount leak in j721e_soc_probe_*

[ Upstream commit a34840c4eb3278a7c29c9c57a65ce7541c66f9f2 ]

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not needed anymore.
Add missing of_node_put() to avoid refcount leak.

Fixes: 6748d0559059 ("ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI)")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220512111331.44774-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/ti/j721e-evm.c