From patchwork Fri Aug 29 09:19:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 4813051 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 13CC79F2A9 for ; Sat, 30 Aug 2014 00:03:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5DE312012F for ; Sat, 30 Aug 2014 00:03:50 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 414872012D for ; Sat, 30 Aug 2014 00:03:49 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id ABAC1266283; Sat, 30 Aug 2014 02:03:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 141CD26560D; Fri, 29 Aug 2014 22:04:16 +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 8A54D265601; Fri, 29 Aug 2014 22:04:12 +0200 (CEST) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2lp0205.outbound.protection.outlook.com [207.46.163.205]) by alsa0.perex.cz (Postfix) with ESMTP id 7388A265640 for ; Fri, 29 Aug 2014 11:24:26 +0200 (CEST) Received: from CH1PR03CA010.namprd03.prod.outlook.com (10.255.156.155) by CY1PR0301MB0620.namprd03.prod.outlook.com (25.160.142.27) with Microsoft SMTP Server (TLS) id 15.0.1015.19; Fri, 29 Aug 2014 09:24:11 +0000 Received: from BN1BFFO11FD043.protection.gbl (10.255.156.132) by CH1PR03CA010.outlook.office365.com (10.255.156.155) with Microsoft SMTP Server (TLS) id 15.0.1015.19 via Frontend Transport; Fri, 29 Aug 2014 09:24:10 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD043.mail.protection.outlook.com (10.58.144.106) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Fri, 29 Aug 2014 09:24:10 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s7T9Nt8K018801; Fri, 29 Aug 2014 02:24:07 -0700 From: Xiubo Li To: , , , , Date: Fri, 29 Aug 2014 17:19:32 +0800 Message-ID: <1409303973-1084-2-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1409303973-1084-1-git-send-email-Li.Xiubo@freescale.com> References: <1409303973-1084-1-git-send-email-Li.Xiubo@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(189002)(199003)(85852003)(93916002)(97736001)(575784001)(50226001)(77982001)(76176999)(4396001)(31966008)(104166001)(76482001)(79102001)(74662001)(92726001)(95666004)(92566001)(2201001)(36756003)(87936001)(81542001)(83072002)(89996001)(86362001)(107046002)(21056001)(19580395003)(229853001)(74502001)(88136002)(83322001)(50466002)(6806004)(80022001)(47776003)(19580405001)(64706001)(90102001)(99396002)(26826002)(20776003)(84676001)(85306004)(81342001)(106466001)(62966002)(105606002)(77156001)(48376002)(44976005)(50986999)(69596002)(68736004)(102836001)(46102001)(81156004)(87286001)(104016003); DIR:OUT; SFP:; SCL:1; SRVR:CY1PR0301MB0620; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 0318501FAE Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Li.Xiubo@freescale.com; X-OriginatorOrg: freescale.com Cc: Xiubo Li , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 1/2] ASoC: simple-card: Fix bug of forgetting decrement DT node's refcount 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP We shouldn't forget decrement the last DT node when the of_get_next_child() has finished searching. Signed-off-by: Xiubo Li --- sound/soc/generic/simple-card.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 21b0ea2..9675bf7 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -344,6 +344,7 @@ static int asoc_simple_card_parse_of(struct device_node *node, return ret; } } + of_node_put(np); } else { ret = simple_card_dai_link_of(node, dev, dai_link, dai_props, true);