summaryrefslogtreecommitdiffstats
path: root/scripts/extract-ikconfig
diff options
context:
space:
mode:
authorSumera Priyadarsini <sylphrenadin@gmail.com>2020-10-15 16:21:40 +0530
committerJulia Lawall <Julia.Lawall@lip6.fr>2020-10-15 22:28:10 +0200
commit82c2d81361ecd142a54e84a9da1e287113314a4f (patch)
tree5d4648fa860e88459fe83573be289063bf5e8b01 /scripts/extract-ikconfig
parentc5864560d935db879cafa21feca0156d91eba842 (diff)
downloadlinux-82c2d81361ecd142a54e84a9da1e287113314a4f.tar.gz
linux-82c2d81361ecd142a54e84a9da1e287113314a4f.tar.bz2
linux-82c2d81361ecd142a54e84a9da1e287113314a4f.zip
coccinelle: iterators: Add for_each_child.cocci script
While iterating over child nodes with the for_each functions, if control is transferred from the middle of the loop, as in the case of a break or return or goto, there is no decrement in the reference counter thus ultimately resulting in a memory leak. Add this script to detect potential memory leaks caused by the absence of of_node_put() before break, goto, or, return statements which transfer control outside the loop. Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com> Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
Diffstat (limited to 'scripts/extract-ikconfig')
0 files changed, 0 insertions, 0 deletions