Skip to content

Commit c6174c0

Browse files
tititiou36Georgi Djakov
authored andcommitted
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: f0d8048 ("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]>
1 parent 512d4a2 commit c6174c0

File tree

1 file changed

+1
-0
lines changed
  • drivers/interconnect/imx

1 file changed

+1
-0
lines changed

drivers/interconnect/imx/imx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ static int imx_icc_node_init_qos(struct icc_provider *provider,
9999
if (!dn || !of_device_is_available(dn)) {
100100
dev_warn(dev, "Missing property %s, skip scaling %s\n",
101101
adj->phandle_name, node->name);
102+
of_node_put(dn);
102103
return 0;
103104
}
104105

0 commit comments

Comments
 (0)