Julia Lawall 81a577034b ath6kl: add missing of_node_put
for_each_compatible_node performs an of_node_get on each iteration, so
a break out of the loop requires an of_node_put.

A simplified version of the semantic patch that fixes this problem is as
follows (http://coccinelle.lip6.fr):

// <smpl>
@@
expression e;
local idexpression n;
@@

 for_each_compatible_node(n,...) {
   ... when != of_node_put(n)
       when != e = n
(
   return n;
|
+  of_node_put(n);
?  return ...;
)
   ...
 }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-26 22:08:12 -07:00
..
2014-07-14 15:49:23 +03:00
2014-07-14 16:03:38 +03:00
2015-10-26 22:08:12 -07:00
2014-03-13 07:47:26 +02:00
2013-08-12 14:11:37 +02:00
2013-08-12 14:11:37 +02:00
2014-03-13 07:47:05 +02:00
2015-08-07 14:46:24 +02:00