From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162607AbdD0O0c (ORCPT ); Thu, 27 Apr 2017 10:26:32 -0400 Received: from mga09.intel.com ([134.134.136.24]:56907 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932415AbdD0O0X (ORCPT ); Thu, 27 Apr 2017 10:26:23 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,384,1488873600"; d="scan'208";a="254195463" Date: Thu, 27 Apr 2017 19:58:10 +0530 From: Vinod Koul To: Arnd Bergmann Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Jeeja KP , Jayachandran B , Senthilnathan Veppur , "Subhransu S. Prusty" , Ramesh Babu , G Kranthi , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: Intel: Skylake: fix uninitialized pointer use Message-ID: <20170427142810.GJ6263@localhost> References: <20170427110014.2316664-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170427110014.2316664-1-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 27, 2017 at 12:59:58PM +0200, Arnd Bergmann wrote: > The error handling in bxt_sst_dsp_init() got changed in a way that > it now derefences an uninitialized pointer when printing a warning > about the device not being found: > > sound/soc/intel/skylake/bxt-sst.c: In function 'bxt_sst_dsp_init': > sound/soc/intel/skylake/bxt-sst.c:567:14: error: 'skl' may be used uninitialized in this function [-Werror=maybe-uninitialized] > > As we do have a valid device pointer available at the call site, > let's use that instead. Thanks Arnd for this fix, but this was also reported by SFR earlier today and have pasoted same patch via http://mailman.alsa-project.org/pipermail/alsa-devel/2017-April/120214.html Patches are same, so Mark can take either :) -- ~Vinod