commit | cc95527cceb3d1aaadd5cc1cf601d466af2e53f2 | [log] [tgz] |
---|---|---|
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | Thu Jul 11 23:49:47 2019 -0700 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Thu Jul 11 23:56:05 2019 -0700 |
tree | 92877ec29739e0ff5d7ca0abd6b45da96ae8afa3 | |
parent | 071cfc43c875ee2e6ac2ae6929c2c153e1d13fe7 [diff] |
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>