aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2019-01-13 09:47:43 +0100
committerHeiko Stuebner <[email protected]>2019-01-13 19:20:45 +0100
commita17ce9960b3628b9f546c454741a1cad551d5695 (patch)
treec4641390c2ede15a0fecd8487f80c9e15d64b0f3 /net/lapb/lapb_in.c
parent4089e272ac61603931beb024d4d640de2cb390e0 (diff)
drm/rockchip: 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: 1f0f01515172 ("drm/rockchip: Add support for Rockchip Soc RGB output interface") Cc: [email protected] Signed-off-by: Julia Lawall <[email protected]> [added fixes and cc-stable] Signed-off-by: Heiko Stuebner <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions