]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: qcom: Fix missing of_node_put() in asoc_qcom_lpass_cpu_platform_probe()
authorLiang He <windhl@126.com>
Sat, 2 Jul 2022 02:01:09 +0000 (10:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:05 +0000 (14:24 +0200)
commitaf74cc087dbe06c8b0af0c27ec99b1c3c0cd151e
tree6bda993c20dc21507520a349a3c7e4dc26119275
parent8484e2cc2d8ce8455131c30814f003cc7a49eab6
ASoC: qcom: Fix missing of_node_put() in asoc_qcom_lpass_cpu_platform_probe()

[ Upstream commit d6d306560fa3e3b8e74fd63205dd21730dd6f951 ]

We should call of_node_put() for the reference 'dsp_of_node' returned by
of_parse_phandle() which will increase the refcount.

Fixes: 41d9a7422b1e ("ASoC: qcom: move ipq806x specific bits out of lpass driver.")
Co-authored-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220702020109.263980-1-windhl@126.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/qcom/lpass-cpu.c