Re: [PATCH v2 1/3] clk: Don't dereference parent clock if is NULL

2015-02-12 Thread Stephen Boyd
On 02/12/15 05:58, Javier Martinez Canillas wrote: The clock passed as an argument to clk_mux_determine_rate_flags() has the CLK_SET_RATE_PARENT flag set but it has no parent, then a NULL pointer will tried to be dereferenced. This shouldn't happen since setting that flag for a clock with no

[PATCH v2 1/3] clk: Don't dereference parent clock if is NULL

2015-02-12 Thread Javier Martinez Canillas
The clock passed as an argument to clk_mux_determine_rate_flags() has the CLK_SET_RATE_PARENT flag set but it has no parent, then a NULL pointer will tried to be dereferenced. This shouldn't happen since setting that flag for a clock with no parent is a bug but the core should be robust to handle