commit | 321275f0d8f5939f2a98749fe03ee97ac97e73d0 | [log] [tgz] |
---|---|---|
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | Tue Jul 23 16:09:10 2019 +0530 |
committer | Marc Zyngier <maz@kernel.org> | Fri Jul 26 14:27:22 2019 +0100 |
tree | 06f3adc62b87f1b7e29fcfe2fd1a5fb56a6c4d6a | |
parent | 34f8eb92ca053cbba2887bb7e4dbf2b2cd6eb733 [diff] |
irqchip/irq-mbigen: 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. 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: Marc Zyngier <maz@kernel.org>