From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH] ASoC: Intel: Skylake: Fix uninitialized return Date: Fri, 25 Aug 2017 11:11:54 +0530 Message-ID: <20170825054154.GH3053@localhost> References: <1503497232-21345-1-git-send-email-subhransu.s.prusty@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by alsa0.perex.cz (Postfix) with ESMTP id 6C8CE266998 for ; Fri, 25 Aug 2017 07:38:33 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1503497232-21345-1-git-send-email-subhransu.s.prusty@intel.com> 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: "Subhransu S. Prusty" Cc: tiwai@suse.de, patches.audio@intel.com, alsa-devel@alsa-project.org, broonie@kernel.org, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org On Wed, Aug 23, 2017 at 07:37:12PM +0530, Subhransu S. Prusty wrote: > On failure to get dsp_ops, dsp_init returns error without assigning ret. ret > is assigned in code path which will never be executed. Fix it. Acked-By: Vinod Koul > Fixes: f77d443c4c29 ("ASoC: Intel: Skylake: Fix to free resources for dsp_init failure" > Reported-by: kbuild test robot > Signed-off-by: Subhransu S. Prusty > --- > sound/soc/intel/skylake/skl-messages.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c > index f0f11f597b21..697d07bc1b5a 100644 > --- a/sound/soc/intel/skylake/skl-messages.c > +++ b/sound/soc/intel/skylake/skl-messages.c > @@ -278,8 +278,8 @@ int skl_init_dsp(struct skl *skl) > > ops = skl_get_dsp_ops(skl->pci->device); > if (!ops) { > - goto unmap_mmio; > ret = -EIO; > + goto unmap_mmio; > } > > loader_ops = ops->loader_ops(); > -- > 1.9.1 > -- ~Vinod