Julia Lawall
a1bdfbaf99
clk: si5351: 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.
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_child_of_node(root, child) {
... when != of_node_put(child)
when != e = child
(
return child;
|
+ of_node_put(child);
? return ...;
)
...
}
// </smpl>
The resulting puts were manually moved to the end of the function for
conciseness.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org >
2015-10-21 16:16:33 -07:00
..
2015-10-01 12:48:11 -07:00
2015-10-21 02:43:57 -07:00
2015-10-21 02:30:17 -07:00
2015-09-02 17:07:10 -07:00
2015-09-17 11:15:14 -07:00
2015-10-16 11:35:19 -07:00
2015-07-20 11:11:36 -07:00
2015-10-19 15:29:09 -07:00
2015-10-01 12:06:00 +08:00
2015-07-20 10:53:10 -07:00
2015-08-24 16:48:49 -07:00
2015-10-16 16:35:43 -07:00
2015-10-01 15:24:34 -07:00
2015-07-20 11:11:08 -07:00
2015-08-26 11:34:43 -07:00
2015-08-31 17:26:48 -07:00
2015-10-16 15:08:43 -07:00
2015-10-02 11:29:47 -07:00
2015-10-02 11:35:32 -07:00
2015-10-16 11:55:02 -07:00
2015-09-29 08:27:14 -07:00
2015-08-24 16:49:03 -07:00
2015-08-31 17:26:48 -07:00
2015-10-08 23:52:59 -07:00
2015-09-16 15:22:31 -07:00
2015-10-20 08:49:11 -07:00
2015-10-02 09:24:28 +03:00
2015-08-24 16:49:14 -07:00
2015-10-16 11:58:53 -07:00
2014-10-20 16:20:23 +02:00
2015-07-28 11:59:39 -07:00
2015-09-01 12:18:40 -07:00
2015-05-13 12:32:52 -07:00
2015-07-20 10:52:50 -07:00
2015-05-13 12:32:53 -07:00
2015-08-24 16:48:44 -07:00
2015-07-20 11:11:32 -07:00
2015-07-20 10:52:53 -07:00
2015-08-24 16:48:48 -07:00
2015-05-21 11:55:05 -07:00
2012-09-19 21:51:27 +01:00
2015-09-16 15:22:33 -07:00
2015-07-20 10:52:54 -07:00
2015-08-24 16:48:48 -07:00
2015-05-14 16:51:50 -07:00
2015-10-02 11:29:48 -07:00
2015-07-28 11:59:28 -07:00
2015-07-28 11:59:24 -07:00
2015-07-20 11:11:22 -07:00
2015-05-05 22:50:50 -07:00
2015-06-16 14:12:25 -04:00
2015-10-14 11:31:55 -07:00
2015-05-14 17:11:18 -07:00
2014-09-09 13:55:44 -07:00
2015-04-10 13:51:55 -07:00
2015-07-20 11:11:33 -07:00
2015-08-24 16:48:43 -07:00
2015-07-20 10:52:57 -07:00
2013-05-31 12:07:45 -07:00
2015-07-20 10:52:58 -07:00
2015-04-10 14:44:43 -07:00
2015-02-18 09:56:43 -08:00
2015-07-20 10:53:00 -07:00
2015-07-28 11:59:32 -07:00
2015-10-08 23:52:55 -07:00
2015-07-20 11:11:35 -07:00
2015-10-21 16:16:33 -07:00
2014-01-27 11:20:22 -08:00
2015-08-24 16:48:51 -07:00
2015-07-28 11:59:09 -07:00
2015-07-20 10:53:04 -07:00
2013-12-19 17:47:32 -08:00
2015-07-20 10:53:05 -07:00
2015-10-16 12:06:58 -07:00
2015-10-21 16:16:32 -07:00
2015-03-12 12:20:34 -07:00
2015-05-06 11:58:57 +01:00
2015-10-16 11:58:53 -07:00
2015-10-12 11:44:49 -07:00