mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
interconnect: imx: Add a missing of_node_put after of_device_is_available
commitc6174c0e05upstream. Add an 'of_node_put()' call when a tested device node is not available. Fixes:f0d8048525("interconnect: Add imx core driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/20201206121304.29381-1-christophe.jaillet@wanadoo.fr Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e5689d84eb
commit
6a0e580ded
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user