aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/aggregator/ssh_parser.c
diff options
context:
space:
mode:
authorSumera Priyadarsini <[email protected]>2020-10-15 10:51:40 +0000
committerJulia Lawall <[email protected]>2020-10-15 20:28:10 +0000
commit82c2d81361ecd142a54e84a9da1e287113314a4f (patch)
tree5d4648fa860e88459fe83573be289063bf5e8b01 /drivers/platform/surface/aggregator/ssh_parser.c
parentscripts: coccicheck: Change default condition for parallelism (diff)
downloadkernel-82c2d81361ecd142a54e84a9da1e287113314a4f.tar.gz
kernel-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 <[email protected]> Signed-off-by: Julia Lawall <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions