2017-12-05 23:29:03

by Stephen Boyd

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

On 11/21, Chunyan Zhang wrote:
> From: Cai Li <[email protected]>
>
> 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)
> Signed-off-by: Cai Li <[email protected]>
> Signed-off-by: Chunyan Zhang <[email protected]>
> ---

Applied to clk-fixes

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project


2017-12-06 07:52:19

by Chunyan Zhang

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

On 6 December 2017 at 07:28, Stephen Boyd <[email protected]> wrote:
> On 11/21, Chunyan Zhang wrote:
>> From: Cai Li <[email protected]>
>>
>> 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)
>> Signed-off-by: Cai Li <[email protected]>
>> Signed-off-by: Chunyan Zhang <[email protected]>
>> ---
>
> Applied to clk-fixes

Thanks!

Chunyan

>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> a Linux Foundation Collaborative Project