diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-04-20 22:31:51 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-21 17:54:56 +0300 |
commit | 8a065ce92b218e453742b745162d75a6f86fb768 (patch) | |
tree | 6b30d941c7566f760de8f29a41e81ac5888cd08e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 69b8821e293aa823ba8184c80370e7e21bde81e6 (diff) | |
download | linux-8a065ce92b218e453742b745162d75a6f86fb768.tar.xz |
regulator: Avoid a double 'of_node_get' in 'regulator_of_get_init_node()'
'for_each_available_child_of_node()' already performs an 'of_node_get()'
on child, so there is no need to perform another one before returning.
Otherwise, a double 'get' is performed and a resource may never be
released.
Fixes: 925c85e21ed8 ("regulator: Factor out location of init data OF node")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/a79f0068812b89ff412d572a1171f22109c24132.1618947049.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions