From: Takashi Iwai Subject: Re: [GIT PULL] ASoC updates for v3.18 Date: Tue, 07 Oct 2014 20:08:12 +0200 Message-ID: References: <20141006115105.GL4609@sirena.org.uk> <20141007171436.GA23707@sirena.org.uk> <20141007180135.GA2796@Alpha> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 83A902606B5 for ; Tue, 7 Oct 2014 20:08:12 +0200 (CEST) In-Reply-To: <20141007180135.GA2796@Alpha> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Nicolin Chen Cc: Fabio Estevam , alsa-devel@alsa-project.org, Timur Tabi , Xiubo Li , Liam Girdwood , Sachin Kamat , Mark Brown , Sean Cross List-Id: alsa-devel@alsa-project.org At Tue, 7 Oct 2014 11:01:36 -0700, Nicolin Chen wrote: > > On Tue, Oct 07, 2014 at 06:14:36PM +0100, Mark Brown wrote: > > On Mon, Oct 06, 2014 at 02:37:53PM +0200, Takashi Iwai wrote: > > > Mark Brown wrote: > > > > > However, this resulted in a few new build warnings, and some of them > > > look correctly reported. > > > > > * sound/soc/codecs/mc13783.c:787:13: warning: 'np' may be used uninitialized in this function [-Wuninitialized] > > > > > The call of_node_put(np) is done unconditionally even for non-NULL > > > pdata where np isn't initialized. This may lead to a real crash. > > > > > * sound/soc/fsl/eukrea-tlv320.c:221:14: warning: 'ssi_np' may be used uninitialized in this function [-Wuninitialized] > > > > > A similar bug: of_node_put(ssi_np) is reached even before ssi_np is > > > initialized. > > > > > * sound/soc/fsl/imx-es8328.c:196:13: warning: 'codec_np' may be used uninitialized in this function [-Wuninitialized] > > > * sound/soc/fsl/imx-es8328.c:195:13: warning: 'ssi_np' may be used uninitialized in this function [-Wuninitialized] > > > > > Ditto. > > > > > Relevant people put in Cc. I hope I'll get a new pull request soon > > > later :) > > > > You missed CCing the Freescale guys and Timur so you're missing most of > > the relevant people here; adding them now. > > Generally we fetch ssi_np and codec_np before other operations. > But somehow these two are doing the fetching a bit later. > > However, I think the below change can be a quick reasonable fix: > - struct device_node *ssi_np, *codec_np; > + struct device_node *codec_np = NULL; > + struct device_node *ssi_np = NULL; > > I'm patching and taking build test. Will send them soon. Patches have been already sent, check ML :) Takashi