Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753903AbdLFHwT (ORCPT ); Wed, 6 Dec 2017 02:52:19 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:42612 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbdLFHwR (ORCPT ); Wed, 6 Dec 2017 02:52:17 -0500 X-Google-Smtp-Source: AGs4zMb6QWJySG1SzxTLUheXK9GqaCQiAlsumktF7GavwT/TORptB1FIjfEN0MDrff1rikV1UUvzYckaf1FCXt3jsDk= MIME-Version: 1.0 In-Reply-To: <20171205232854.GC4283@codeaurora.org> References: <20171121092438.19316-1-chunyan.zhang@spreadtrum.com> <20171205232854.GC4283@codeaurora.org> From: Chunyan Zhang Date: Wed, 6 Dec 2017 15:51:35 +0800 Message-ID: Subject: Re: [PATCH V2] clk: fix a panic error caused by accessing NULL pointer To: Stephen Boyd Cc: Chunyan Zhang , Michael Turquette , linux-clk , "linux-kernel@vger.kernel.org" , Cai Li , Orson Zhai Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 732 Lines: 25 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 "none" if the input parameter is NULL. >> >> Fixes: dfc202ead312 (clk: Add tracepoints for hardware operations) >> Signed-off-by: Cai Li >> Signed-off-by: Chunyan Zhang >> --- > > Applied to clk-fixes Thanks! Chunyan > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > a Linux Foundation Collaborative Project