diff options
author | Nuno Sá <nuno.sa@analog.com> | 2020-09-25 11:10:44 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-09-29 17:34:18 +0100 |
commit | b07c47bfab6f5c4c7182d23e854bbceaf7829c85 (patch) | |
tree | bb37dea454631b9167bb90ab350bcabf25ffaa98 /tools/perf/scripts/python/sched-migration.py | |
parent | bbbeac88fb3540b9421c90866a04a7a89cc6adab (diff) |
iio: ltc2983: Fix of_node refcounting
When returning or breaking early from a
`for_each_available_child_of_node()` loop, we need to explicitly call
`of_node_put()` on the child node to possibly release the node.
Fixes: f110f3188e563 ("iio: temperature: Add support for LTC2983")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200925091045.302-1-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions