projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d3ac70
)
ASoC: SOF: imx8ulp: add missing of_node_put() in imx8ulp_probe()
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 24 Aug 2022 01:32:34 +0000
(09:32 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 24 Aug 2022 11:21:28 +0000
(12:21 +0100)
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>
sound/soc/sof/imx/imx8ulp.c
patch
|
blob
|
history
diff --git
a/sound/soc/sof/imx/imx8ulp.c
b/sound/soc/sof/imx/imx8ulp.c
index afab7feab5fb35eb01e4ccca0ee6b91902dce66a..4a562c9856e93c1bcd111f70e68c3513b43699bc 100644
(file)
--- a/
sound/soc/sof/imx/imx8ulp.c
+++ b/
sound/soc/sof/imx/imx8ulp.c
@@
-234,6
+234,7
@@
static int imx8ulp_probe(struct snd_sof_dev *sdev)
}
ret = of_address_to_resource(res_node, 0, &res);
+ of_node_put(res_node);
if (ret) {
dev_err(&pdev->dev, "failed to get reserved region address\n");
goto exit_pdev_unregister;