Re: [PATCH V2] clk: fix a panic error caused by accessing NULL pointer

2017-12-05 Thread Chunyan Zhang
On 6 December 2017 at 07:28, Stephen Boyd wrote: > On 11/21, Chunyan Zhang wrote: >> From: Cai Li >> >> In some cases the clock parent would be set NULL when doing re-parent, >> it will cause a NULL pointer accessing if clk_set trace event is >>

Re: [PATCH V2] clk: fix a panic error caused by accessing NULL pointer

2017-12-05 Thread Chunyan Zhang
On 6 December 2017 at 07:28, Stephen Boyd wrote: > On 11/21, Chunyan Zhang wrote: >> From: Cai Li >> >> In some cases the clock parent would be set NULL when doing re-parent, >> it will cause a NULL pointer accessing if clk_set trace event is >> enabled. >> >> This patch sets the parent as

Re: [PATCH V2] clk: fix a panic error caused by accessing NULL pointer

2017-12-05 Thread Stephen Boyd
On 11/21, Chunyan Zhang wrote: > From: Cai Li > > In some cases the clock parent would be set NULL when doing re-parent, > it will cause a NULL pointer accessing if clk_set trace event is > enabled. > > This patch sets the parent as "none" if the input parameter is NULL.

Re: [PATCH V2] clk: fix a panic error caused by accessing NULL pointer

2017-12-05 Thread Stephen Boyd
On 11/21, Chunyan Zhang wrote: > From: Cai Li > > In some cases the clock parent would be set NULL when doing re-parent, > it will cause a NULL pointer accessing if clk_set trace event is > enabled. > > This patch sets the parent as "none" if the input parameter is NULL. > > Fixes:

[PATCH V2] clk: fix a panic error caused by accessing NULL pointer

2017-11-21 Thread Chunyan Zhang
From: Cai Li In some cases the clock parent would be set NULL when doing re-parent, it will cause a NULL pointer accessing if clk_set trace event is enabled. This patch sets the parent as "none" if the input parameter is NULL. Fixes: dfc202ead312 (clk: Add tracepoints

[PATCH V2] clk: fix a panic error caused by accessing NULL pointer

2017-11-21 Thread Chunyan Zhang
From: Cai Li In some cases the clock parent would be set NULL when doing re-parent, it will cause a NULL pointer accessing if clk_set trace event is enabled. This patch sets the parent as "none" if the input parameter is NULL. Fixes: dfc202ead312 (clk: Add tracepoints for hardware operations)