Files
linux/drivers/gpu/drm
Julia Lawall ebfb081edc drm/rockchip: lvds: add missing of_node_put
The device node iterators perform an of_node_get on each iteration, so a
jump 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;
iterator name for_each_child_of_node;
@@

 for_each_child_of_node(root, child) {
   ... when != of_node_put(child)
       when != e = child
+  of_node_put(child);
?  break;
   ...
}
... when != child
// </smpl>

Fixes: 34cc0aa254 ("drm/rockchip: Add support for Rockchip Soc LVDS")
Cc: stable@vger.kernel.org
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1527102436-13447-6-git-send-email-Julia.Lawall@lip6.fr
2018-06-16 14:22:35 +02:00
..
2018-05-25 20:08:27 +03:00
2018-04-25 09:09:22 +02:00
2018-05-23 10:45:02 +02:00
2018-05-23 10:45:22 +02:00
2018-06-11 20:22:44 +03:00
2018-05-04 00:13:41 +02:00
2018-05-25 20:08:27 +03:00
2018-06-11 20:22:44 +03:00
2018-05-25 08:28:41 +03:00
2018-03-29 19:14:21 +03:00
2018-06-15 23:31:07 +03:00
2018-06-15 23:31:07 +03:00
2018-05-03 21:26:32 +02:00
2018-06-15 23:31:07 +03:00
2018-05-03 21:26:32 +02:00
2018-05-04 11:36:45 +02:00