commit | 91227632fc7a047965dcc41da89a40dc982caae8 | [log] [tgz] |
---|---|---|
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | Tue Jul 23 16:07:25 2019 +0530 |
committer | Boris Brezillon <boris.brezillon@collabora.com> | Sun Aug 11 10:45:51 2019 +0200 |
tree | 20baaf379dd9199a2a0fa94e136471f489fd26b6 | |
parent | 934d24a5e1508e73c0001afb54a3916e4270428f [diff] |
i3c: master: Add of_node_put() before return Each iteration of for_each_available_childe_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. Add an of_node_put before the return. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>