Julia Lawall
4b6ba5e28b
leds: bcm6358: add missing of_node_put
...
for_each_available_child_of_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 root,e;
local idexpression child;
@@
for_each_available_child_of_node(root, child) {
... when != of_node_put(child)
when != e = child
(
return child;
|
+ of_node_put(child);
? return ...;
)
...
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com >
2015-11-03 09:00:02 +01:00
..
2015-11-03 08:59:23 +01:00
2014-05-08 14:28:07 +08:00
2015-11-03 08:59:20 +01:00
2015-03-09 17:16:23 -07:00
2015-11-03 08:59:22 +01:00
2015-11-03 08:59:22 +01:00
2014-11-14 14:29:35 -08:00
2014-10-20 16:20:43 +02:00
2015-09-17 10:02:08 +02:00
2014-10-20 16:20:43 +02:00
2014-10-20 16:20:43 +02:00
2015-11-03 08:59:44 +01:00
2015-11-03 09:00:02 +01:00
2014-05-08 14:28:08 +08:00
2014-02-27 10:19:57 -08:00
2014-10-20 16:20:43 +02:00
2015-11-03 08:59:09 +01:00
2015-06-22 13:57:09 -07:00
2014-10-20 16:20:43 +02:00
2014-10-20 16:20:43 +02:00
2013-10-22 10:57:34 -07:00
2015-08-28 14:06:23 +02:00
2014-09-29 10:21:01 -07:00
2015-11-03 08:59:48 +01:00
2015-11-03 08:59:11 +01:00
2015-11-03 08:59:17 +01:00
2015-09-17 10:02:00 +02:00
2015-08-28 14:06:02 +02:00
2015-08-28 14:06:02 +02:00
2014-10-20 16:20:43 +02:00
2015-08-28 14:06:02 +02:00
2015-11-03 08:59:50 +01:00
2015-08-28 14:06:28 +02:00
2015-08-28 14:06:28 +02:00
2014-09-11 16:55:27 -07:00
2015-08-28 14:06:28 +02:00
2015-08-28 14:06:28 +02:00
2015-08-28 14:06:28 +02:00
2015-08-28 14:06:28 +02:00
2014-10-20 16:20:43 +02:00
2015-08-28 14:06:04 +02:00
2014-10-20 16:20:43 +02:00
2014-10-20 16:20:43 +02:00
2015-09-17 10:02:03 +02:00
2015-01-14 10:40:20 -08:00
2015-11-03 08:59:52 +01:00
2015-11-03 08:59:54 +01:00
2015-11-03 08:59:36 +01:00
2015-09-17 10:02:05 +02:00
2015-11-03 08:59:13 +01:00
2015-08-28 14:06:02 +02:00
2015-08-28 14:06:30 +02:00
2014-09-18 11:03:10 -07:00
2015-11-03 09:00:00 +01:00
2015-02-24 11:42:18 -08:00
2014-10-20 16:20:43 +02:00
2014-12-15 18:28:25 -08:00
2014-10-20 16:20:43 +02:00
2015-11-03 08:59:20 +01:00
2014-06-25 15:34:24 -07:00
2014-10-20 16:20:43 +02:00
2015-08-28 14:06:25 +02:00
2015-08-28 14:06:30 +02:00
2015-08-28 14:06:14 +02:00
2014-03-28 10:54:15 +01:00
2014-10-20 16:20:43 +02:00
2014-10-20 16:20:43 +02:00
2015-11-03 08:59:58 +01:00
2015-11-03 08:59:22 +01:00
2015-11-03 08:59:20 +01:00