On Tue, 16 Jul 2019 11:13:30 +0530, Nishka Dasgupta wrote: > Each iteration of for_each_child_of_node puts the previous node, but in > the case of a return or break from the middle of the loop, there is no > put, thus causing a memory leak. Hence add an of_node_put before the > return or break in three places. > Issue found with Coccinelle. > > Signed-off-by: Nishka Dasgupta <nishkadg.linux@xxxxxxxxx> > --- > drivers/of/resolver.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > Applied, thanks. Rob