summaryrefslogtreecommitdiff
path: root/Documentation/ide
diff options
context:
space:
mode:
authorNishka Dasgupta <nishkadg.linux@gmail.com>2019-07-11 23:49:47 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-07-11 23:56:05 -0700
commitcc95527cceb3d1aaadd5cc1cf601d466af2e53f2 (patch)
tree92877ec29739e0ff5d7ca0abd6b45da96ae8afa3 /Documentation/ide
parent071cfc43c875ee2e6ac2ae6929c2c153e1d13fe7 (diff)
downloadlinux-cc95527cceb3d1aaadd5cc1cf601d466af2e53f2.tar.gz
linux-cc95527cceb3d1aaadd5cc1cf601d466af2e53f2.tar.bz2
linux-cc95527cceb3d1aaadd5cc1cf601d466af2e53f2.zip
Input: mtk-pmic-keys - add of_node_put() before return
Each iteration of for_each_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Hence add an of_node_put before the return in three places. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/ide')
0 files changed, 0 insertions, 0 deletions