Re: [PATCH 10/12] cpufreq: ap806: add missing of_node_put after of_device_is_available

2019-02-24 Thread Viresh Kumar
On 23-02-19, 14:20, Julia Lawall wrote: > Add an of_node_put when a tested device node is not available. > > The semantic patch that fixes this problem is as follows > (http://coccinelle.lip6.fr): > > // > @@ > identifier f; > local idexpression e; > expression x; > @@ > > e = f(...); > ...

[PATCH 10/12] cpufreq: ap806: add missing of_node_put after of_device_is_available

2019-02-23 Thread Julia Lawall
Add an of_node_put when a tested device node is not available. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ identifier f; local idexpression e; expression x; @@ e = f(...); ... when != of_node_put(e) when != x = e when != e = x when