Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp253858ybi; Wed, 29 May 2019 20:43:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVSjdyfcVImZa8JBz4HCxcJTKsgQYLBR8d2v0cgAtUv6z34EU5bBAo7E+xsNr3TrxkyC60 X-Received: by 2002:aa7:8c10:: with SMTP id c16mr1503571pfd.89.1559187811076; Wed, 29 May 2019 20:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559187811; cv=none; d=google.com; s=arc-20160816; b=mkJcECopQjwxPsy+ur/zhs47v2aoPQBTcnEb13hs/MTh8zGKuUsNYJEIxwvkdAC5hp 9RxhokErZWZAMDlbeB6/wVZRjFO4ckjyxUrQ5g3UGxaLdxKPqWByEuW5uSXPFd+zCKQG OX8cHERd4lIn/lFQ/LD1H3+CV2JhpjwV9U2/4MryWmBINBSFgn73Nnuq8J4b7kC87b+o 41GXvh66VBoakFQQOvxtJ5u4/Xtrh2SiQ5NteJgwzHRkTrO4rDXzLIM+A0qXCneYEarw Jv/XRCvNPe61FukQH1Af+mHqNV1C/IcFmij0FBBpevkc//fQjaW73MaB/8BADROfcyb6 EbmA== 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=e1XlNGose6OvSzjoIOowrv0NTRT5QYNUC940nx2xHM4=; b=PJWLExM6BZVMe/G0vRaptuAROha824wTpngbJyDisZMuGJ+mJyNpxaw+1NcoE5rOVO M1AY0xEGiLc8roxqRG6USlVUOeiXtYEG/fCQDb97DqSpBdEo8kReVTsGsic6E/BGr2L0 Ss7Yusu0uANmbdwH4u5+JiMovZkJSEguo7iPaJN4xP2mPRiFZ0pDPwawG5VzekiOkMlM kReT+c3jII88X1kelyi+zL8kTTHyeU+QtdOWKZrOckzFiE16/9Q7T1jAQzqm1vM7GvJJ rYN1Gfjn44XpmICSUU4TOnLBTSY+CyUgTi5YkUDuhTf1PH669Vyz5HoS088mxH/n1N4X WcFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cpbNbX1B; 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 c1si1908681pgm.548.2019.05.29.20.43.14; Wed, 29 May 2019 20:43:31 -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=cpbNbX1B; 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 S1732749AbfE3DmH (ORCPT + 99 others); Wed, 29 May 2019 23:42:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:33752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732495AbfE3DVP (ORCPT ); Wed, 29 May 2019 23:21:15 -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 72776249CE; Thu, 30 May 2019 03:21:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186474; bh=acZXoBPoKiXvlqIJzBAzO0pMqsa6VZtkUPUMJfKHWvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cpbNbX1BoDOwBHIrboBVEy+M5Og63KPYnmBR3j9vWxOcdRKRYZb4EIwofWvTCzSPI 9jU005mOt7vDd3NgcAz076yiluyf1KjOddnv2jmLHKwoVPdpfjCPv1EoMcySX83IUA onTIHA2vmz8qPc+zQnHqme0mhwOCkE+s//efmWJo= 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.9 106/128] ASoC: eukrea-tlv320: fix a leaked reference by adding missing of_node_put Date: Wed, 29 May 2019 20:07:18 -0700 Message-Id: <20190530030453.759325192@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030432.977908967@linuxfoundation.org> References: <20190530030432.977908967@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 883087f2b092b..38132143b7d5e 100644 --- a/sound/soc/fsl/eukrea-tlv320.c +++ b/sound/soc/fsl/eukrea-tlv320.c @@ -119,13 +119,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