Thread (3 messages) flat view 3 messages, 3 authors, 2019-07-25

Re: [PATCH] mtd: rawnand: meson: Add of_node_put() before return

From: Miquel Raynal <miquel.raynal@bootlin.com>
Date: 2019-07-25 07:55:43
Also in: linux-amlogic

On Tue, 2019-07-09 at 17:16:40 UTC, Nishka Dasgupta wrote:
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 <redacted>
Acked-by: Liang Yang <liang.yang@amlogic.com>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help