Home
last modified time | relevance | path

Searched hist:"321275 f0d8f5939f2a98749fe03ee97ac97e73d0" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/irqchip/
H A Dirq-mbigen.cdiff 321275f0d8f5939f2a98749fe03ee97ac97e73d0 Tue Jul 23 12:39:10 CEST 2019 Nishka Dasgupta <nishkadg.linux@gmail.com> 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>