From patchwork Mon Sep 10 11:35:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 146298 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2383456ljw; Mon, 10 Sep 2018 04:35:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbIHoaAyHv2PmAG7d4mOYbu1DAkFseTuC/qU0SNG5nYe7XmMkYOgt7ZP42AplZPF/Bo8Lk6 X-Received: by 2002:a1c:af53:: with SMTP id y80-v6mr409856wme.55.1536579324054; Mon, 10 Sep 2018 04:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536579324; cv=none; d=google.com; s=arc-20160816; b=DGCjTi3TGKUhUPGKx5NWWXvnQZl3hs3sik0X3o6i3pQzaKTdlJu6vu6m76mr+hHr4d rBJyigUdKlZBmEYX1uz9SAJbrErcdagX/Kaw+C3UkXNJ4tOE/d34sF3jq8Xn+9w3u4wo 5xETwAD127KcILEplihbYe8ceMMCmVUGbMz45Zeukcob24MXFjrDkD/qVW4FX+iYET0k 1SLGXDes3FEE70Kn2wm9Et8EQzATq3u3pen73eOfs86x7NLYJDk7zE/5rexxWuQPwxSC QjOWd5Eg+4/ppNyLjjq7pJLzY862d/XrtfeyoaaZqfNCCnQ2YxBd+f/d40wrv40WlMwY KJAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to; bh=Kt5cXMaAKqpf9JzMAEDeP2RxhYQrJgCF3D0iHZfrwoE=; b=Tg+wwGNY/H724MJrhsqSc8Th7/huOuMOo67yHWvS14hTqw/4cKXyKU1CmsuT47jq/M 5Vt/vem1BpyQrrmHKX58ooD9vW3GPmQIZWzTbjmaXJkJ0D4LMboyW2B9LeZy4xv7nfbB izwQllN1t36iLmg9l0c+Ec7XZR8oi52ByBRCE7nyq2dhONT3VAqwQfOgtEHOAYYBESRV 8jQaSKXRK5fskH9J52yp6mb0nQpXcFCSeJ7xv/ucurYqRZK2fnhKDQSKVG5Z//wL5WBJ 0FEdL21v2i6PU/VXHP7elVVpnbMhCvZMxjcDb0fhjzbXygkLPOtT8YW7eJjETd80D9fn j3Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="f98y2/Gp"; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id x10-v6si14994241wrl.31.2018.09.10.04.35.23; Mon, 10 Sep 2018 04:35:24 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="f98y2/Gp"; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 20F97267887; Mon, 10 Sep 2018 13:35:23 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id AA562267887; Mon, 10 Sep 2018 13:35:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id D691F267847 for ; Mon, 10 Sep 2018 13:35:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=h7Gu6qiBEL2JfE7VObATWfSQjsRXVc1YZVsFWCp5BsI=; b=f98y2/Gpebey OMF9SL9VkxkOGhC/SpPEFKO+2r+6biKU1Pepcss8159EIQuBcaU+SJXEU6MHywMsTTlh7ziVR0B+V w67qWiVsrYwFQuNFjuxw5lgZCGy3jONqtANeDqmOEP+a/aeYx5QYn52MLHgupS/oNJQQNRUVvugj4 NmAUU=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fzKTO-0001vr-HE; Mon, 10 Sep 2018 11:35:18 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 430D71122D51; Mon, 10 Sep 2018 12:35:18 +0100 (BST) From: Mark Brown To: Dan Carpenter In-Reply-To: Message-Id: <20180910113518.430D71122D51@debutante.sirena.org.uk> Date: Mon, 10 Sep 2018 12:35:18 +0100 (BST) Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: dapm: Fix a couple uninitialized ret variables" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: dapm: Fix a couple uninitialized ret variables has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 2e558a8127de7b2ed3302f9adcf332ba3feeadb2 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 7 Sep 2018 22:40:33 +0300 Subject: [PATCH] ASoC: dapm: Fix a couple uninitialized ret variables Smatch complains that these variables could be uninitialized. The first one in snd_soc_dai_link_event() is probably a false positive, because probably we know the lists are not empty. I would normally ignore the warning, but GCC complains here as well so I just silenced the warning. The "ret" in snd_soc_dapm_new_dai() does need to be initialized or it leads to a bogus dereference in the caller. Fixes: 3bbf5d34fd4a ("ASoC: dapm: Move error handling to snd_soc_dapm_new_control_unlocked") Signed-off-by: Dan Carpenter Signed-off-by: Mark Brown --- sound/soc/soc-dapm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.19.0.rc1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index e496bc642c99..0dcdcc23dcfd 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3938,8 +3938,10 @@ snd_soc_dapm_new_dai(struct snd_soc_card *card, struct snd_soc_pcm_runtime *rtd, dev_dbg(card->dev, "ASoC: adding %s widget\n", link_name); w = snd_soc_dapm_new_control_unlocked(&card->dapm, &template); - if (IS_ERR(w)) + if (IS_ERR(w)) { + ret = PTR_ERR(w); goto outfree_kcontrol_news; + } w->priv = rtd;