Julia Lawall
aa3312012f
drm/imx: imx-ldb: add missing of_node_puts
...
The device node iterators perform an of_node_get on each
iteration, so a jump out of the loop requires an of_node_put.
Move the initialization channel->child = child; down to just
before the call to imx_ldb_register so that intervening failures
don't need to clear it. Add a label at the end of the function to
do all the of_node_puts.
The semantic patch that finds part of this problem is as follows
(http://coccinelle.lip6.fr ):
// <smpl>
@@
expression root,e;
local idexpression child;
iterator name for_each_child_of_node;
@@
for_each_child_of_node(root, child) {
... when != of_node_put(child)
when != e = child
(
return child;
|
* return ...;
)
...
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de >
2019-01-17 14:59:02 +01:00
..
2019-01-03 18:57:57 -08:00
2018-12-19 09:40:13 +01:00
2019-01-02 18:47:56 -08:00
2018-11-28 22:10:54 -08:00
2018-12-21 21:27:21 +01:00
2019-01-05 13:25:58 -08:00
2019-01-03 08:21:47 -07:00
2018-12-19 13:43:42 +01:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2019-01-03 18:57:57 -08:00
2019-01-02 18:56:59 -08:00
2019-01-05 09:50:07 -08:00
2018-12-27 10:43:24 -08:00
2018-12-27 10:43:24 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 12:11:47 -08:00
2018-12-11 11:40:13 +09:00
2019-01-04 14:31:38 -08:00
2019-01-04 13:13:46 -08:00
2018-12-19 11:57:45 +01:00
2019-01-05 18:33:21 -08:00
2019-01-05 11:28:39 -08:00
2019-01-03 18:57:57 -08:00
2018-12-02 16:25:28 -08:00
2018-12-10 10:17:45 +01:00
2018-12-28 20:00:21 -08:00
2019-01-17 14:59:02 +01:00
2019-01-05 17:53:40 -08:00
2018-12-05 00:16:59 +01:00
2018-12-28 20:54:57 -08:00
2018-12-29 13:03:29 -08:00
2019-01-03 11:42:10 -08:00
2018-12-19 20:21:06 +01:00
2019-01-05 18:13:35 -08:00
2018-12-12 17:08:32 +01:00
2018-12-28 13:19:59 -08:00
2018-12-28 20:39:58 -08:00
2019-01-05 18:20:51 -08:00
2019-01-02 18:56:59 -08:00
2019-01-01 15:55:29 -08:00
2018-12-29 09:40:40 -08:00
2019-01-02 10:31:39 -08:00
2018-12-25 14:52:50 -08:00
2018-12-22 14:45:35 -07:00
2019-01-03 18:57:57 -08:00
2018-12-21 22:31:26 -06:00
2019-01-03 08:21:02 -07:00
2019-01-03 18:57:57 -08:00
2019-01-05 11:30:37 -08:00
2018-12-28 16:52:18 -08:00
2018-12-18 23:13:12 -05:00
2018-12-13 16:40:03 +00:00
2019-01-05 18:13:35 -08:00
2018-12-28 16:52:18 -08:00
2018-12-29 12:03:17 -08:00
2019-01-03 12:53:47 -08:00
2018-12-28 16:55:46 -08:00
2018-12-19 08:35:36 +01:00
2018-12-06 15:45:46 +01:00
2018-12-28 20:08:34 -08:00
2018-12-14 16:28:52 +05:30
2018-12-29 13:40:29 -08:00
2019-01-05 17:57:34 -08:00
2019-01-05 11:23:17 -08:00
2019-01-04 10:13:27 +00:00
2018-12-12 10:02:12 +05:30
2019-01-01 13:19:16 -08:00
2019-01-06 11:40:06 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:22:45 -08:00
2018-12-29 13:03:29 -08:00
2018-12-28 20:54:57 -08:00
2018-12-24 12:06:56 +01:00
2018-12-22 00:25:54 +09:00
2018-12-21 13:43:35 +00:00
2019-01-01 13:24:31 -08:00
2019-01-02 18:37:01 -08:00
2018-12-26 10:32:18 -08:00
2019-01-03 18:57:57 -08:00
2018-12-06 15:50:06 +01:00
2018-12-31 17:32:35 -08:00
2018-12-25 14:43:54 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 14:48:06 -08:00
2018-12-31 13:06:30 -08:00
2019-01-05 16:07:28 -08:00
2018-12-05 12:01:56 +03:00
2019-01-05 11:30:37 -08:00
2018-12-28 20:54:57 -08:00
2019-01-05 17:57:34 -08:00
2019-01-01 15:55:29 -08:00
2019-01-03 18:57:57 -08:00
2019-01-05 18:15:37 -08:00
2019-01-02 18:54:45 -08:00
2018-12-22 00:25:54 +09:00
2019-01-01 13:16:45 -08:00
2019-01-03 18:57:57 -08:00
2018-12-29 13:40:29 -08:00