Nishka Dasgupta 197df18f70 mfd: max77620: 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.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2019-07-25 14:21:38 +01:00
..
2019-07-15 20:18:40 -07:00
2019-07-15 20:18:40 -07:00
2019-07-11 18:45:29 -07:00
2019-07-15 20:18:40 -07:00
2019-07-15 20:18:40 -07:00
2019-07-15 20:18:40 -07:00
2019-07-15 20:18:40 -07:00
2019-07-15 20:18:40 -07:00
2019-07-15 20:18:40 -07:00
2019-07-02 12:11:31 +01:00
2019-07-02 12:11:31 +01:00
2019-07-02 12:11:31 +01:00
2019-07-15 20:18:40 -07:00
2019-07-15 20:18:40 -07:00
2019-07-15 20:18:40 -07:00
2017-07-18 08:27:18 +01:00
2019-07-15 20:18:40 -07:00
2019-01-16 13:59:34 +00:00
2019-07-09 08:59:39 -07:00