Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp271898ybi; Wed, 29 May 2019 21:06:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjvIJdD934G+1bXwvEmBxJkORgwYvNK1AWQuLBIFpzRKFHF/iyb801rVbobO/6KouZZuHp X-Received: by 2002:a62:304:: with SMTP id 4mr1696824pfd.186.1559189193176; Wed, 29 May 2019 21:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559189193; cv=none; d=google.com; s=arc-20160816; b=oJvQv+KyVM4iRIqp/mT5dIKUVJnHusRG7atfzTMqETqULlMg1FDcftYdkh//+b6VyD 9eBmVmbpu7tb/g8KB/zYzk6NtpQiyH67rhRrR4btbSkLNd8WDc8dI7+j0W113HcptacA vhFTs6fLUcHzGNlZQu3SMUPjI6YeouphHkusT2hdxzsAI9zTmhc8iqzfyqUN/i+MnrYs b8b+P5U8Q3AUOqNGKhtn1ll0JDroK20vNHIyWz9fAoZxGfz772ac0N8kFDB2ZK5zQHgf ebEFKalWI5WGVbOHqv9uRMOGgSKW4+SridtjW9dqqyhmXIqjZ8bIggF828dzUQWIsc2w 9fBQ== 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=xjX68HG5+VyhIlMSvgvG4CPpR4MFv0EdURCHj63Xa7s=; b=ofvGL6vH/adKi7NKFSzoPw7ah17Rd9a2C3dYwKALL1N1cLKg1zFse1bM70Ipt3uX2F OZuheOr2mD1j/hPXxJTFjuZsadc7QlhCyYa2ZTz5UUCaWLXILndncP42Gf1ZToU32O/9 bco2YvcEM8e+obQ1w7NPjYW9ZmkXV+3rMZklDyl8tS8JUJ6gzsbOrASikXS2SwoxdZnJ 8vBhrkISY08RoJZfqrsccXC2i4ZenuXdnawa0ELgtkt9CIUabiN+3C6M33t0IBtC1dKo V0XYL/SO9lkyGIMov6t8A3leI7Gr9L4Gg5pPNZ/1OmMlIphe3BlLMC+3cfiSpZZfduh3 rLWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C8XGtR+M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si1930961pgj.284.2019.05.29.21.06.16; Wed, 29 May 2019 21:06:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C8XGtR+M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387685AbfE3EEF (ORCPT + 99 others); Thu, 30 May 2019 00:04:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:49076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730466AbfE3DRx (ORCPT ); Wed, 29 May 2019 23:17:53 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (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 61C702472C; Thu, 30 May 2019 03:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186273; bh=PrASumR4TwpvbI9yKAcKLsEX+QBbVstRS6VbOrnSOUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C8XGtR+MdrRhP4QOZ305z8w6nLKdcRq+l4jjDo76Zdnmk1sD4C7i4SYhtih0ZLdtv y27FxMC+ItMDvicMDzWChvkaznLACMhP8k2TojG1n8tCJpBiZK6CPFZqbXbeUdMmq6 1MbLB0JYVvFjtdPKt62MC7rIpcb5vctlrHTXGTDQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wen Yang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, Sasha Levin Subject: [PATCH 4.19 214/276] ASoC: eukrea-tlv320: fix a leaked reference by adding missing of_node_put Date: Wed, 29 May 2019 20:06:12 -0700 Message-Id: <20190530030538.511082959@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030523.133519668@linuxfoundation.org> References: <20190530030523.133519668@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit b820d52e7eed7b30b2dfef5f4213a2bc3cbea6f3 ] The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./sound/soc/fsl/eukrea-tlv320.c:121:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 102, but without a correspo nding object release within this function. ./sound/soc/fsl/eukrea-tlv320.c:127:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 102, but without a correspo nding object release within this function. Signed-off-by: Wen Yang Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/eukrea-tlv320.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/eukrea-tlv320.c b/sound/soc/fsl/eukrea-tlv320.c index 191426a6d9adf..30a3d68b5c033 100644 --- a/sound/soc/fsl/eukrea-tlv320.c +++ b/sound/soc/fsl/eukrea-tlv320.c @@ -118,13 +118,13 @@ static int eukrea_tlv320_probe(struct platform_device *pdev) if (ret) { dev_err(&pdev->dev, "fsl,mux-int-port node missing or invalid.\n"); - return ret; + goto err; } ret = of_property_read_u32(np, "fsl,mux-ext-port", &ext_port); if (ret) { dev_err(&pdev->dev, "fsl,mux-ext-port node missing or invalid.\n"); - return ret; + goto err; } /* -- 2.20.1