Julia Lawall
8e5cfb74bc
power_supply: charger-manager: add missing of_node_put
...
for_each_child_of_node performs an of_node_get on each iteration, so
a break out of the loop requires an of_node_put.
The semantic patch that fixes this problem is as follows
(http://coccinelle.lip6.fr ):
// <smpl>
@@
expression root,e;
local idexpression child;
@@
for_each_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>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2015-10-15 10:55:44 +02:00
..
2015-08-08 03:07:52 +02:00
2015-09-22 15:45:39 +02:00
2015-09-22 13:35:31 +02:00
2015-05-29 16:06:10 +02:00
2013-04-16 17:38:10 -07:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-22 13:35:28 +02:00
2015-06-26 17:44:09 -07:00
2015-05-23 19:44:14 +02:00
2015-09-28 18:07:48 +02:00
2015-09-23 18:59:19 +02:00
2015-09-22 13:35:30 +02:00
2015-09-29 16:55:03 +02:00
2015-07-27 16:09:53 +02:00
2015-06-13 04:06:33 +02:00
2015-10-15 10:55:44 +02:00
2015-04-30 17:39:40 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-07-27 16:28:54 +02:00
2015-07-27 16:28:54 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-29 16:49:58 +02:00
2015-09-22 13:35:29 +02:00
2015-03-13 23:15:51 +01:00
2015-07-24 16:52:24 +02:00
2015-09-24 22:43:13 +02:00
2015-09-22 16:02:16 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-22 16:20:10 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-22 16:01:34 +02:00
2015-07-16 21:39:30 +01:00
2015-07-27 16:28:54 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-22 13:35:30 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-08-03 23:15:50 +08:00
2015-05-23 20:06:19 +02:00
2015-06-10 16:10:59 +02:00
2012-03-11 14:27:37 -04:00
2015-09-24 22:35:24 +02:00
2015-08-05 05:39:08 +02:00
2015-09-22 13:35:30 +02:00
2015-08-03 17:14:57 +02:00
2015-03-13 23:15:51 +01:00
2015-06-10 16:18:46 +02:00
2015-09-22 13:35:30 +02:00
2015-05-28 11:32:10 +09:30
2015-03-13 23:15:51 +01:00
2015-09-22 16:03:37 +02:00
2015-09-24 22:43:13 +02:00
2015-09-26 19:10:09 +02:00
2015-04-06 19:39:57 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-26 18:55:09 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00