aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2020-12-28 14:03:02 +0200
committerGeorgi Djakov <[email protected]>2020-12-28 14:03:02 +0200
commitc6174c0e058fc0a54e0b9787c44cb24b0a8d0217 (patch)
treef22dc37359b01094eb2cec5d419b893ea0576120
parent512d4a26abdbd11c6ffa03032740e5ab3c62c55b (diff)
interconnect: imx: Add a missing of_node_put after of_device_is_available
Add an 'of_node_put()' call when a tested device node is not available. Fixes: f0d8048525d7 ("interconnect: Add imx core driver") Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
-rw-r--r--drivers/interconnect/imx/imx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c
index 41dba7090c2a..e398ebf1dbba 100644
--- a/drivers/interconnect/imx/imx.c
+++ b/drivers/interconnect/imx/imx.c
@@ -99,6 +99,7 @@ static int imx_icc_node_init_qos(struct icc_provider *provider,
if (!dn || !of_device_is_available(dn)) {
dev_warn(dev, "Missing property %s, skip scaling %s\n",
adj->phandle_name, node->name);
+ of_node_put(dn);
return 0;
}