summaryrefslogtreecommitdiff
path: root/drivers/input/tablet/gtco.c
diff options
context:
space:
mode:
authorNishka Dasgupta <nishkadg.linux@gmail.com>2019-07-12 09:49:47 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-07-12 09:56:05 +0300
commitcc95527cceb3d1aaadd5cc1cf601d466af2e53f2 (patch)
tree92877ec29739e0ff5d7ca0abd6b45da96ae8afa3 /drivers/input/tablet/gtco.c
parent071cfc43c875ee2e6ac2ae6929c2c153e1d13fe7 (diff)
downloadlinux-cc95527cceb3d1aaadd5cc1cf601d466af2e53f2.tar.xz
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 'drivers/input/tablet/gtco.c')
0 files changed, 0 insertions, 0 deletions