Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: imx8ulp: add missing of_node_put() in imx8ulp_probe()

After using 'res_node' returned by of_parse_phandle(), of_node_put()
need be called to decrease the refcount.

Fixes: fb5319af6ad8 ("ASoC: SOF: imx: Add i.MX8ULP HW support")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220824013234.375738-2-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Yang Yingliang and committed by
Mark Brown
adc641f1 7d3ac70d

+1
+1
sound/soc/sof/imx/imx8ulp.c
··· 234 234 } 235 235 236 236 ret = of_address_to_resource(res_node, 0, &res); 237 + of_node_put(res_node); 237 238 if (ret) { 238 239 dev_err(&pdev->dev, "failed to get reserved region address\n"); 239 240 goto exit_pdev_unregister;