Julia Lawall
7366419b5e
mmc: atmel-mci: add missing of_node_put
...
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 ):
// <smpl>
@@
local idexpression n;
expression e,e1;
iterator name for_each_child_of_node;
@@
for_each_child_of_node(e1,n) {
...
(
of_node_put(n);
|
e = n
|
+ of_node_put(n);
? break;
)
...
}
... when != n
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2017-08-30 14:01:31 +02:00
..
2017-08-30 14:01:23 +02:00
2017-08-30 14:01:31 +02:00
2014-10-20 16:20:56 +02:00
2017-06-20 10:30:31 +02:00
2016-02-29 11:02:59 +01:00
2017-05-22 18:01:46 +02:00
2017-05-22 18:01:46 +02:00
2017-06-20 10:30:17 +02:00
2017-04-24 21:42:10 +02:00
2013-10-30 20:26:37 -04:00
2016-01-05 18:04:57 +01:00
2017-04-24 21:41:52 +02:00
2017-06-29 17:14:26 +02:00
2015-03-23 14:13:28 +01:00
2017-02-13 13:19:59 +01:00
2017-02-13 13:19:59 +01:00
2017-02-13 13:19:59 +01:00
2012-11-28 12:28:18 -08:00
2017-06-29 17:13:59 +02:00
2017-02-13 13:20:03 +01:00
2017-02-13 13:20:03 +01:00
2017-07-27 15:57:30 +02:00
2017-06-29 17:14:26 +02:00
2017-05-22 17:20:02 +02:00
2017-08-30 14:01:23 +02:00
2017-08-30 14:01:21 +02:00
2017-06-12 08:58:16 +02:00
2017-04-24 21:41:52 +02:00
2017-02-27 18:43:47 -08:00
2014-09-09 13:58:46 +02:00
2017-04-24 21:41:52 +02:00
2017-02-13 13:20:52 +01:00
2017-04-24 21:41:52 +02:00
2017-08-30 14:01:27 +02:00
2017-04-24 21:41:52 +02:00
2009-03-24 21:30:03 +01:00
2017-08-30 14:01:28 +02:00
2017-02-13 13:20:27 +01:00
2016-03-17 14:54:40 +01:00
2017-08-30 14:01:22 +02:00
2017-02-13 13:20:23 +01:00
2017-06-20 10:30:17 +02:00
2017-08-30 14:01:26 +02:00
2017-08-30 14:01:21 +02:00
2017-08-30 14:01:21 +02:00
2017-08-30 14:01:21 +02:00
2017-02-13 13:19:54 +01:00
2017-08-30 14:01:27 +02:00
2017-04-24 21:41:59 +02:00
2016-07-25 10:34:46 +02:00
2016-07-29 11:29:04 +02:00
2017-07-11 14:11:59 +02:00
2016-09-26 21:31:08 +02:00
2017-06-20 10:30:48 +02:00
2017-04-24 21:42:19 +02:00
2016-07-29 11:29:04 +02:00
2016-07-29 11:29:04 +02:00
2017-06-20 10:30:34 +02:00
2017-06-20 10:30:32 +02:00
2017-05-22 18:18:04 +02:00
2017-04-24 21:41:29 +02:00
2017-06-20 10:30:07 +02:00
2017-08-30 14:01:31 +02:00
2017-04-28 14:53:13 +02:00
2016-07-29 11:29:04 +02:00
2017-07-04 11:11:56 -07:00
2017-04-24 21:41:28 +02:00
2017-04-24 21:41:38 +02:00
2015-10-26 16:00:05 +01:00
2017-06-20 10:30:38 +02:00
2016-05-02 10:33:25 +02:00
2017-04-24 21:41:26 +02:00
2016-11-29 09:01:00 +01:00
2017-04-24 21:41:20 +02:00
2017-04-24 21:41:29 +02:00
2017-04-24 21:41:29 +02:00
2017-04-24 21:41:26 +02:00
2017-04-24 21:41:26 +02:00
2017-08-30 14:01:20 +02:00
2017-04-24 21:41:18 +02:00
2017-05-19 08:58:21 +02:00
2017-08-30 14:01:29 +02:00
2017-05-19 08:58:21 +02:00
2017-04-24 21:42:27 +02:00
2017-04-24 21:42:27 +02:00
2017-06-20 10:30:08 +02:00
2017-02-13 13:19:58 +01:00
2017-07-17 12:29:53 +02:00
2014-09-24 10:13:09 +02:00
2017-08-30 14:01:26 +02:00
2017-06-20 10:30:50 +02:00
2017-08-30 14:01:25 +02:00
2016-04-22 01:32:37 +02:00
2014-11-26 14:30:58 +01:00
2016-05-02 10:36:06 +02:00
2017-03-16 15:31:27 +01:00
2017-02-13 13:20:01 +01:00
2017-06-20 10:30:09 +02:00
2017-07-12 16:26:03 -07:00
2017-02-13 13:20:01 +01:00