From: Liang He Date: Sat, 2 Jul 2022 02:01:09 +0000 (+0800) Subject: ASoC: qcom: Fix missing of_node_put() in asoc_qcom_lpass_cpu_platform_probe() X-Git-Tag: v6.0-rc1~93^2~8^2~37^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f507c0c67dac57d2bcd5dcae4b6139b0305d8957;p=thirdparty%2Fkernel%2Flinux.git 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: 9bae4880acee ("ASoC: qcom: move ipq806x specific bits out of lpass driver.") Co-authored-by: Miaoqian Lin Signed-off-by: Liang He Link: https://lore.kernel.org/r/20220702020109.263980-1-windhl@126.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 263a066769d47..8a56f38dc7e86 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -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); if (dsp_of_node) { dev_err(dev, "DSP exists and holds audio resources\n"); + of_node_put(dsp_of_node); return -EBUSY; }