Re: [PATCH] clk: Fix debugfs clk removal before inited

2015-01-27 Thread Mike Turquette
Quoting Stephen Boyd (2015-01-19 11:44:35) > On 01/19/2015 01:57 AM, Srinivas Kandagatla wrote: > > Some of the clks can be registered & unregistered before the clk related > > debugfs > > entries are initialized at late_initcall. In the unregister path checking > > for only > > dentry before clk

Re: [PATCH] clk: Fix debugfs clk removal before inited

2015-01-19 Thread Stephen Boyd
On 01/19/2015 01:57 AM, Srinivas Kandagatla wrote: > Some of the clks can be registered & unregistered before the clk related > debugfs > entries are initialized at late_initcall. In the unregister path checking for > only > dentry before clk_debug_init() would lead dangling pointers in the debug

[PATCH] clk: Fix debugfs clk removal before inited

2015-01-19 Thread Srinivas Kandagatla
Some of the clks can be registered & unregistered before the clk related debugfs entries are initialized at late_initcall. In the unregister path checking for only dentry before clk_debug_init() would lead dangling pointers in the debug clk list, because the list is already populated in register