[PATCH] mmc: atmel-mci: add missing of_node_put

2017-07-15 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a break out the loop requires an of_node_put. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression n; expression e,e1; iterator name for_each_child_of_node; @@ for_eac

Re: [PATCH] mmc: atmel-mci: add missing of_node_put

2017-07-17 Thread Ulf Hansson
On 15 July 2017 at 18:27, Julia Lawall wrote: > for_each_child_of_node performs an of_node_get on each iteration, so a > break out the loop requires an of_node_put. > > The semantic patch that fixes this problem is as follows > (http://coccinelle.lip6.fr): > > // > @@ > local idexpression n; > ex