From patchwork Mon Aug 17 15:12:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 247793 Delivered-To: patch@linaro.org Received: by 2002:a54:3b12:0:0:0:0:0 with SMTP id j18csp2438391ect; Mon, 17 Aug 2020 08:26:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6KTtUK7AVdj7HYwJd/8GFM5IirrEb0XbrhRWqkY1mBAN/u7hI6Ov7Tj5/sYsf3jNTApXR X-Received: by 2002:a17:906:f0cc:: with SMTP id dk12mr15056085ejb.97.1597677965553; Mon, 17 Aug 2020 08:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597677965; cv=none; d=google.com; s=arc-20160816; b=jgz0b5U055k5acDKdFClCAygBZSDzbK59mxTeIoyGqcSdcTsGAdu/ixIYTwrlI73Vf PzCyczt/y2oCulUEXZBHpiuh4caC7h+0iNvbK8iuKqREjW26fM1JzvnhQRRJ5/Qu/SrK GBF/PlQSWiGq+geghShrtWJmmUTwNm2oknLMbmR1XcEzDe0Cnh6HnGc333YkoKmMwinX BD9X26lhwH654s/Nod5jsj12fR56nv/s3O3GOjA4t5VlyFJeDN7rq3lp0c8qnEoz6gxe xcKQO+z3KJlFGpVWVGIJKaMznoJvoJkEmdrOSf9YMgsp99ZwCxH0gWH/Hm4rVovKUQyX ynFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HzHYKY9vExPgZG5uCJ+6LU5iEX5SFFArqt7lZMj0iMs=; b=SDRiJn+9V2e5mpENe1se6Zw12wOnMnS32p5UJ0T3JqJmRavfYLVQ+k+1EyNn5KAZfU wDpWsS97dpJUxU2n+f4kdzkBFK6xEuyZ8dmA4tvIZ5dwXEA4PmfRjyxTKyCfuqWB2hcT DO2fUbCkDFFmrrWsS+KRr9RMypRZsJHwnbQ8yHDjFYLSVyqYBA0NF2cTLj1cty6gDbhG fBg18ux4aOLlsxEmyf5yvb27dpcJxRO9W5RK4d0QbXIG7jrjanbkJPEk3bfwSAJAJztq xVPbUVhidADfaCTuWdBq2qylOIhvSi/ib1U7/o3mI8VACbhnZAeF13Wv4uv/701H4N6g L1KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r8R77W+8; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d23si11254314edv.224.2020.08.17.08.26.05; Mon, 17 Aug 2020 08:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r8R77W+8; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729777AbgHQPZ7 (ORCPT + 15 others); Mon, 17 Aug 2020 11:25:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:33292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729776AbgHQPZ4 (ORCPT ); Mon, 17 Aug 2020 11:25:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A0FD923442; Mon, 17 Aug 2020 15:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597677956; bh=uV6qIhz4BQd4/2PvMwxiyKnrpeVYq28NqbseEiesAaY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r8R77W+8FrvnsvqRTTyyXNpUgZ6usGUSEG+CdRcpM8HHBuIiVeQ5G/o5AYAgZM3x3 UhDdUK2Xz6Bi4+8Ogk0qvDtJLVDmdX4qxOO7UcEHsKMcH7jlG8jPB3THBks9K69sYC mVRhTeWb5ljBsw/eDooBT2kaNTnRy7N+oOXKfBTo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shengjiu Wang , Nicolin Chen , Mark Brown , Sasha Levin Subject: [PATCH 5.8 169/464] ASoC: fsl_easrc: Fix uninitialized scalar variable in fsl_easrc_set_ctx_format Date: Mon, 17 Aug 2020 17:12:02 +0200 Message-Id: <20200817143841.913407092@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Shengjiu Wang [ Upstream commit 5748f4eb01a4df7a42024fe8bc7855f05febb7c5 ] The "ret" in fsl_easrc_set_ctx_format is not initialized, then the unknown value maybe returned by this function. Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers") Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen Link: https://lore.kernel.org/r/1592816611-16297-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl_easrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index c6b5eb2d2af79..fff1f02dadfee 100644 --- a/sound/soc/fsl/fsl_easrc.c +++ b/sound/soc/fsl/fsl_easrc.c @@ -1133,7 +1133,7 @@ int fsl_easrc_set_ctx_format(struct fsl_asrc_pair *ctx, struct fsl_easrc_ctx_priv *ctx_priv = ctx->private; struct fsl_easrc_data_fmt *in_fmt = &ctx_priv->in_params.fmt; struct fsl_easrc_data_fmt *out_fmt = &ctx_priv->out_params.fmt; - int ret; + int ret = 0; /* Get the bitfield values for input data format */ if (in_raw_format && out_raw_format) {