summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-01-25 13:21:37 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-01 11:11:52 -0200
commit458a39523542c4479a69b98743436fb761f03796 (patch)
treee5582ee8d47fea5e911ac72faed6583862b6ad10 /tools/perf/scripts/python/bin/stackcollapse-record
parent0ede1876f7eb43ee6a47f5081d8902db6dd8b4ab (diff)
downloadlinux-458a39523542c4479a69b98743436fb761f03796.tar.gz
linux-458a39523542c4479a69b98743436fb761f03796.zip
[media] media: platform: exynos4-is: media-dev: Add missing of_node_put
for_each_available_child_of_node and for_each_child_of_node perform an of_node_get on each iteration, so to break out of the loop an of_node_put is required. Found using Coccinelle. The simplified version of the semantic patch that is used for this is as follows: // <smpl> @@ local idexpression n; expression e,r; @@ for_each_available_child_of_node(r,n) { ... ( of_node_put(n); | e = n | + of_node_put(n); ? break; ) ... } ... when != n // </smpl> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions