Re: Coccinelle: Checking of_node_put() calls with SmPL

2019-07-11 Thread Tyrel Datwyler
On 07/10/2019 11:35 PM, wen.yan...@zte.com.cn wrote: >>> we developed a coccinelle script to detect such problems. >> >> Would you find the implementation of the function “dt_init_idle_driver” >> suspicious according to discussed source code search patterns? >>

Re: Coccinelle: Checking of_node_put() calls with SmPL

2019-07-11 Thread Markus Elfring
> In my experience, when you start looking at these of_node_put things, > all sorts of strange things appear... How much will this situation influence the achievement of further improvements also for your software? Regards, Markus

Re: Coccinelle: Checking of_node_put() calls with SmPL

2019-07-11 Thread Markus Elfring
> 180 break; ---> Jump out of > the loop without releasing it The device node reference is released behind this for loop. > 183 if (!of_device_is_available(state_node)) { > 184 of_node_put(state_node);

Re: Coccinelle: Checking of_node_put() calls with SmPL

2019-07-11 Thread Julia Lawall
On Thu, 11 Jul 2019, wen.yan...@zte.com.cn wrote: > > > we developed a coccinelle script to detect such problems. > > > > Would you find the implementation of the function “dt_init_idle_driver” > > suspicious according to discussed source code search patterns? > >

Re: Coccinelle: Checking of_node_put() calls with SmPL

2019-07-11 Thread wen.yang99
> > we developed a coccinelle script to detect such problems. > > Would you find the implementation of the function “dt_init_idle_driver” > suspicious according to discussed source code search patterns? >

Re: Coccinelle: Checking of_node_put() calls with SmPL

2019-07-10 Thread Markus Elfring
> we developed a coccinelle script to detect such problems. Would you find the implementation of the function “dt_init_idle_driver” suspicious according to discussed source code search patterns?