Commit f507c0c6 authored by Liang He's avatar Liang He Committed by Mark Brown

ASoC: qcom: Fix missing of_node_put() in asoc_qcom_lpass_cpu_platform_probe()

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

Fixes: 9bae4880 ("ASoC: qcom: move ipq806x specific bits out of lpass driver.")
Co-authored-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220702020109.263980-1-windhl@126.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 68f26639
...@@ -1091,6 +1091,7 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev) ...@@ -1091,6 +1091,7 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
dsp_of_node = of_parse_phandle(pdev->dev.of_node, "qcom,adsp", 0); dsp_of_node = of_parse_phandle(pdev->dev.of_node, "qcom,adsp", 0);
if (dsp_of_node) { if (dsp_of_node) {
dev_err(dev, "DSP exists and holds audio resources\n"); dev_err(dev, "DSP exists and holds audio resources\n");
of_node_put(dsp_of_node);
return -EBUSY; return -EBUSY;
} }
......
Markdown is supported
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